Re: [Rd] Pb with validObject(..., complete=TRUE)

2008-04-16 Thread Herve Pages
Hi John, John Chambers wrote: > The "infelicity" arises because validObject() is not a generic function; > validity "method" is a bit of a misnomer. Indeed. And I guess referring to "method dispatch" like I did in my previous email is not appropriate either. So yes I learned that thinking of val

Re: [Rd] Pb with validObject(..., complete=TRUE)

2008-04-16 Thread John Chambers
The "infelicity" arises because validObject() is not a generic function; validity "method" is a bit of a misnomer. The functions are attached to the class definition and validObject looks for them directly--in the process it catches all methods from superclasses, but not from superclasses of t

[Rd] Pb with validObject(..., complete=TRUE)

2008-04-15 Thread Herve Pages
Hi, When called with complete=TRUE, validObject() is supposed to work in a recursive manner. But here is a situation where it doesn't seem to be the case. Let's define a class with a validity method: setClass("PosInts", representation(ii="integer")) setValidity("PosInts", function(ob