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

Lambda fields should not be hardcoded in Emit.hs #1393

Open
scolsen opened this issue Feb 23, 2022 · 1 comment
Open

Lambda fields should not be hardcoded in Emit.hs #1393

scolsen opened this issue Feb 23, 2022 · 1 comment

Comments

@scolsen
Copy link
Contributor

scolsen commented Feb 23, 2022

as mentioned in #1391 the Lambda type having a field called delete is problematic for C++ interop. Since the struct is defined in core.h, a user using a c++ compiler could in theory rename the field and solve the problem, unfortunately it won't because, the field is hardcoded in Emit.hs.

Instead, we should register the lambda type from core and use its binding information to emit C in the emitter (vs. hardcoding).

@eriksvedang
Copy link
Collaborator

Yes, let's try that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants