Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std::transmute #61

Open
VonTum opened this issue Jan 30, 2025 · 0 comments
Open

std::transmute #61

VonTum opened this issue Jan 30, 2025 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@VonTum
Copy link
Collaborator

VonTum commented Jan 30, 2025

We need a builtin module to transmute any type T to a bit vector of size sizeof #(T)

This signature:

__builtin__ module transmute #(T1, T2) {
  assert #(C: sizeof #(T: T1) == sizeof #(T: T2))
  interface transmute : T1 v1 -> T2 v2
}
@VonTum VonTum added enhancement New feature or request good first issue Good for newcomers labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant