When a variable is passed to another variable and you make changes to the second variable, the changes are NOT reflected in the original variable.
How difficult would it be to allow BYOND to force variables to act in the first manner?
Example:
mob/var/MyVariable=1
var/MyVar==mob/var/MyVariable //Probably would want a different syntax to avoid confusion with equality checks, but this is just an example
MyVar++
world<<"[MyVar], [MyVariable]" //Outputs 2, 2
Probably considerably difficult. What you're referring to is a reference variable, a concept that BYOND doesn't really support as such. I don't think it's impossible, but it would involve a level of compiler mastery I have not yet achieved.
If you want references though, a simple way to do that is to stick your vars into a datum and then just pass the datum.
Lummox JR