Code that uses a variable before it is declared compiles, but does not run, crashing Dream Daemon.
Numbered Steps to Reproduce Problem:
Write code that uses a variable before it is declared
Compile the code, and see a warning but no errors
Run the code in Dream Daemon and watch it crash
Code Snippet (if applicable) to Reproduce Problem:
/world/New()
e = 1
var/e
or
/world/New()
e = 1
try
throw(1)
catch(var/e)
Expected Results:
Code that attempted to use a variable before its declaration would not compile
Actual Results:
Code that attempts to use a variable before its declaration compiles, but crashes Dream Daemon if the code executes.
Does the problem occur:
Every time? Or how often? Every time
In other games? N/A
In other user accounts? Unknown
On other computers? Unknown
When does the problem NOT occur? Unknown
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? Behaving as described in at least 499.1204, 508.1299, 509.1318 and 509.1319.
Workarounds: Declare vars before you use them?