Auto update of a field (data member) in R reference class
问题 Any equivalent as the decorator @property in python? That is to have one field automatically updated (on access) due to an update of another field, instead of recomputing it before access. UPDATE 2014-02-06 By defining "one" field as an activeBindingFunction of "another" field turns on the automatic updates (See @jdharrison's answer). However, is there anyway to check whether such updates are lazy evaluation? If not, how can we achieve this? (A later edit: an "informal" print function inside