Skip to content

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

Open
@scolsen

Description

@scolsen

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions