search for: superclassdepth

Displaying 2 results from an estimated 2 matches for "superclassdepth".

2004 Jun 18
0
Problem with setValidity() or resetClass() or ... ?
...tAllSuperClasses(ClassDef)' is called which ## returns "only" 'Class2' (as already 'ClassDef' contains ## only 'Class2') and 'exts' is reduced to exts["Class2"] ## which is then returned. ## ## 'getAllSuperClasses(ClassDef)' calls 'superClassDepth()' ## which don't get "all" but only 'Class2' ## But, for me this seems to be right, since 'ClassDef' ## (in the call) contains only the information about 'Class2'.
2009 Aug 17
2
S4: inheritance of validity methods?
Dear Developers, In current implementation of validity method, objects are first coerced to superclass (slots are striped). Thus, it is not possible to write validity method which would perform some checks on children slots. Say, I want to check if number of slots in a class is equal to "n": setClass("A", representation(a="numeric", n="integer"),