Open TheLoneWolfling opened 8 years ago
Wow that's thorny. I'm guessing you're talking about something like:
(let r [ r ] )
is that correct?
Yep.
Or worse, if you somehow end up with value.data.arr[i] == value, not just a variable with a value of value.
Here is one such bug:
(let arr [0, 0, 0, 0, 0])
(each arr item index (map arr item index_b arr))
WARNING: this will run until it gobbles up all memory available, then crash.
Three options as to how to deal with this:
Personally, I'd lean towards 3. Your thoughts?
This messes all sorts of things up - it's entirely possible to end up with an array that has itself as a member. (Not just as a variable!)
Among the things messed up:
Should this be forbidden, or should this be supported?