You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 17, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 17, 2022. It is now read-only.
closures can't be assigned to local variables #152
oh i remember why. fixing this is hard because closures are emitted as structures for capture context.
this is a corner case where there's no special assignment case in symbolic, its just passed as literal = into C, and using = for structs is not legal in C. We'd either need yet another special case or finally some more generic way to assignment.
Activity
Fix syntax errors and obvious compile errors in README
aep commentedon Jan 26, 2021
ah yes, closures can't be assigned to local variables. i dont know why, this looks like a bug.
[-]closures don't work as documented[/-][+]closures can't be assigned to local variables[/+]aep commentedon Jan 26, 2021
oh i remember why. fixing this is hard because closures are emitted as structures for capture context.
this is a corner case where there's no special assignment case in symbolic, its just passed as literal = into C, and using = for structs is not legal in C. We'd either need yet another special case or finally some more generic way to assignment.
Fix syntax errors and obvious compile errors in README
jacereda commentedon May 4, 2021
C should handle = for structs AFAIK...