isaacg1 / pyth

Pyth, an extremely concise language. Try it here:
https://pyth.herokuapp.com/
MIT License
264 stars 57 forks source link

Assigning to Lambda Variables #155

Open isaacg1 opened 9 years ago

isaacg1 commented 9 years ago

Assigning to lambda variables doesn't work properly.

m,=d1dU4d

outputs

[[1, 0], [1, 1], [1, 2], [1, 3]] 1

It appears the assignment happens at the global scope, but the lambda function can't see this global scope.

isaacg1 commented 9 years ago

Fixed by 0100c1f95628c47c0a25d1165a66f591fbe5fb60, but watch out for bugs.

isaacg1 commented 9 years ago

There were bugs, the above commit was reverted. This issue remains.