View Single Post
  #1 (permalink)  
Old 08-23-2006, 09:50 PM
Chan Chan is offline
Programming Professional
 
Join Date: Jun 2006
Posts: 205
Rep Power: 10
Chan is on a distinguished road
Default Get and Set Functions

I don't really understand the GET and SET functions inside of a function. The functions go like this:

Code:
int somefunction() {
Get {
   return variable;
}

set {
   variable = this;
}
}
Where do you send the variable for set? When was this added? It seems like a neat way to create functions in classes and not have to create a new get/set function for everything.
Reply With Quote

Sponsored Links