Changes between Version 36 and Version 37 of PRO_LIB_CORE_TUTORIAL


Ignore:
Timestamp:
07/09/09 19:32:48 (16 years ago)
Author:
gogov
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TabularUnified PRO_LIB_CORE_TUTORIAL

    v36 v37  
    222222    * You'll be happy if you don't want to worry about when X(), Y() and Z() get initialized and this way the ProLib can do it for you, 
    223223    * You can capsulate the initialization logic in the compute() method so your ProObject constructor doesn't get bloated with it instead, 
    224     * By convention you insert ''assert getLastValue() == null;'' assertion which makes sure that the Property is still not initialized by the time the compute() method is called (which means that it's value is still null). 
     224    * By convention you insert ''assert getLastValue() == null;'' assertion which makes sure that the Property is still not initialized by the time the compute() method is called (which means that it's value is still null). So it's not just a convention, it's a must, otherwise you just don't check whether this AutoProperty is constant at all. 
    225225    * Also by convention, you annotate such AutoProperties with '''@Const'''. 
    226226