ID:98056
 
BYOND Version:470
Operating System:Windows 7 Home Premium
Web Browser:Firefox 3.5.10
Applies to:Dream Maker
Status: Deferred

This issue may be low priority or very difficult to fix, and has been put on the back burner for the time being.
Descriptive Problem Summary:
Defining a variable with the same name as an object's variable within a proc belonging to said object... and then trying to refer to it before the new definition... results in compiler error.

Code Snippet (if applicable) to Reproduce Problem:
mob
var
blah

proc
test()
world << blah // use of blah precedes its definition
var/blah // definition is here


Expected Results:
Before blah is defined, any reference to blah would refer to the object's variable. After blah is defined, any reference to blah would refer to the local variable.

Actual Results:
Compiler errors...
warning: blah: use of blah precedes its definition
warning: blah: definition is here


Does the problem occur:
Every time? Or how often? Yes.
In other games? Haven't tried.
In other user accounts? No clue.
On other computers? No clue.