Closed lojikil closed 1 year ago
The code issues here are around line 503 and 204 in carpet/cg/compiler.py
What we can do here eventually:
function[...]
Similar to #4, I probably will have to mark this as won't fix, since I'd honestly prefer to fix the self-hosted compiler and make that work really well than to try to fix everything going on in here...
The compiler cannot determine that a function has been passed in as a parameter; obviously to truly do this correctly we'd need to track the types for the params, but I believe at this point we should be ok just to check the parameter exists in the environment spaghetti stack.
this code will not currently work:
The compiler complains that
f
is not a known function.