View Single Post
  #38  
Old 01-25-2008, 12:12 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Quote:
Originally Posted by Stefan View Post
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
Reply With Quote