Qore Programming Language

  • Increase font size
  • Default font size
  • Decrease font size

How can I find out in my class if an object member is changed?

E-mail Print PDF
How can I find out in my class if an object member is changed?
In qore 0.7.0 or above you can define the memberNotification() method; this method will be called any time an object's member's value is changed from outside the class.  The memberNotification() method will be called with the member's name that was updated.  This method is only called when member's are updated from outside the class.
 
Define a memberGate() method to find out when a non-existant member of the class is read.