Parameter Passing
- Throughout TM, the TMObjs.$makeparamrow() and TMObj.$loadparamvars() functions are used for passing parameters between objects. This method is favoured over passing individual parameters to a top-level class, especially when a large number of the parameters are optional. See wModeless.$construct for an example.
- When over-riding any method:
- always put the parameters in place that the superclass has:
- in the same order (verify the order always)
- document with the same parameter definitions
- copy whatever documentation from the superclass and augment with why you are over-riding the class if it is not obvious
- All parameters are to have an initial value specified for default case. 0, kTrue, Kfalse or #NULL is acceptable if no value is wanted