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

Move constant bodies to be a FunDecl #428

Open
Nadrieril opened this issue Oct 18, 2024 · 0 comments
Open

Move constant bodies to be a FunDecl #428

Nadrieril opened this issue Oct 18, 2024 · 0 comments
Assignees

Comments

@Nadrieril
Copy link
Member

In crate_of_json we do a little hack where we transform each global into a function declaration that contains its body and a new global type that points to that function. I think we should do this on the rust side too: a constant would not contain a body and instead would contain a FunDeclId of its initializer function.

@Nadrieril Nadrieril self-assigned this Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant