Wopslang / Wops

Wops programming language
https://wops.dev/
Apache License 2.0
26 stars 3 forks source link

variable redefine error in iteration #48

Closed happybean4 closed 2 years ago

happybean4 commented 2 years ago

Once the iteration statement is rotated, the variable 'x' in the iteration statement must be removed from memory, but remains, generating an 'Redefine Error' for x.

Code image

Output image

redocmath commented 2 years ago

It seems like a critical bug. Thanks for reporting.

redocmath commented 2 years ago

Sorry for the late reply. We just checked the initialization system for in-block variables is missed, and we started to fix this error.

We'll contact you soon. Thank you

redocmath commented 2 years ago

53

redocmath commented 2 years ago

Done!