View Single Post
  #35  
Old 01-24-2008, 03:37 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 bscharff View Post
With the new callstack function, we could easily do some sort of protection.

Stefan could add some sort of onStrChanged(str, str, obj, str)
params[0] could be the string being modified
params[1] could be the new string value
params[2] could be the object that is changing it
params[3] could be the old string value

Then add a check like if onStrChanged() is in the object's functions (the one with the string being modified - to relieve any possible confusion) then run through the function, otherwise, just modify the string without any nonsense.

onStrChanged()...... some of you people really don't seem to be getting this....when i say protected/private variables, only the local object can even see them let alone write to them! Other objects can't even read their contents or know if they exist!
Reply With Quote