Quote:
Originally Posted by Stefan
Well we could eventually start with adding some flag to complete block access to variables from outside, and then you write functions for retrieving data.
The syntax for getters/setters would look more like "function set varname(value)" and "function get varname()" to be compatible with ECMA/JavaScript.
|
That or perhaps add a new section for variables like this.private.vars . That way the engine knows straight off that it can't touch other objects vars contained within obj.private
But whatever works
