I don't know if this is a bug, but I don't recall being able to do this in the past...
I can have something like this with no problems compiling:
this can be in the same code section, same file, or spread throughout different files.
For example, in mob.dm I store the default values for each race, so I'll have mob/var/strength & mob/dwarf/strength=10 is the default for that race.
If there's something out there that I've got (say a skill test where I hadn't yet defined "strength" as a variable so put one in so the function would work) mob/var/strength or mob/dwarf/var/strength.
Depending on the order of the code files, one of them takes presidence and the world could initialize using a null or incorrect value...
Makes me really like using central defining sections to store all the information :). Time to go through all my code and remove the duplicates.
Copyright © 2015 BYOND. All rights reserved.