Carp icon indicating copy to clipboard operation
Carp copied to clipboard

Lambda fields should not be hardcoded in Emit.hs

Open scolsen opened this issue 3 years ago • 1 comments

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).

scolsen avatar Feb 23 '22 21:02 scolsen

Yes, let's try that.

eriksvedang avatar Feb 25 '22 13:02 eriksvedang