ID:104617
 
BYOND Version:479
Operating System:Windows 7 Home Premium 64-bit
Web Browser:Firefox 4.0
Applies to:DM Language
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:

In the reference for /world, it states:
"New vars and procs cannot be defined under world though; to make global vars and procs, use /var and /proc instead," which isn't true.

Creating a world/proc is quite possible.
Creating a world/var gives you a "variable declaration not allowed here" error.
However, if the var is anything but world, the world/proc will still run and you can call it by world.myProc().

Numbered Steps to Reproduce Problem:

N/A.

Code Snippet (if applicable) to Reproduce Problem:
client/verb/call_myProc()
{
world.myProc();
}
world/proc/myProc()
{
world << "Hey, this works.";
}
world/var/myVar /* <- Doesn't work. */


Expected Results:

Compiler error for world/proc/myProc()

Actual Results:

Is quite capable and fully functional.
The reference lies.

Does the problem occur:
Every time? Or how often?

N/A.

In other games?

N/A.

In other user accounts?

N/A.

On other computers?

N/A.


When does the problem NOT occur?

N/A.

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.)

N/A.

Workarounds:

N/A.

*Sorry for posting in Features. Relocated this to bugs.
Technically, this is correct. Since we'd like to encourage language consistency between /var and /proc, we recommend using those instead of world/var (which doesn't work) and world/proc (which does). Eventually, we'll support world/var and encourage all global declarations to be made under /world, since that is more in-line with current OO standards.