isaacg1 / pyth

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

Assigning variables in Defs #102

Closed jakobkogler closed 9 years ago

jakobkogler commented 9 years ago

Just take a look at this: (permalink)

DeGJ1~J1RJ;e1

This gives a UnboundLocalError: local variable 'J' referenced before assignment. But strangely it works for the following example: (permalink)

DeGJ1+=J1RJ;e1
isaacg1 commented 9 years ago

~ doen't really work in the new system. The simple fix is to make it an alias for +=.

isaacg1 commented 9 years ago

Fixed. (Not online yet.)