View Single Post
  #2 (permalink)  
Old 08-24-2006, 07:08 AM
brackett brackett is offline
Programmer
 
Join Date: May 2006
Posts: 193
Rep Power: 11
brackett is on a distinguished road
Default

I think you're describing Properties, but the syntax is a bit off. Instead of function someFunction, it'd be property someProperty.

The value in the set is implicit - it's what gets passed when you say object.someProperty = x; (x is the passed value).

It's cleaner than Java's getProperty, setProperty IMHO.
Reply With Quote