Open ilpincy opened 2 years ago
I'm getting output 1;2;3 with code A, and [nil];1;2 with code B. I've just started exploring Buzz. Could you let me know which file contains the function implementation? I'm eager to contribute to your swarm robotics work.
It's not for the faint of heart, but you should look into buzzparser.c, where the assembly is generated. The function parse_if() and parse_lambda() might be a good point to start, there is likely something in there that is not properly set for this situation.
The following code listings generate different behavior. (A) is correct, (B) is wrong.
The problem is related to parsing, in particular when a lambda is created inside a block (in this case the
if
), but theif
is not itself into afunction()
.I don't have a fix yet, need to check how to solve it.