BYOND gets confused when tricked into accessing a global variable on an object instance
Numbered Steps to Reproduce Problem:
1. Create a global variable
2. Create an instance of something
3. Try to access a value on the something but put the variable name on a newline
4. Run the code
Code Snippet (if applicable) to Reproduce Problem:
var/list/glob = list(1,2,3)
/world/New()
..()
var/obj/inst = new
for(var/l in inst.
glob) {world.log << l}
shutdown()
Expected Results:
Either listing 1,2,3 or some sort of syntax error
Actual Results:
BYOND enters an infinite loop where it loops over an infinite list of nulls
Does the problem occur:
Every time? Or how often? Yes
In other games? N/A
In other user accounts? N/A
On other computers? Dunno
occur?
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.) It has always occurred
Workarounds:
Not doing this sort of wacky syntax