On 8/19/19 16:23, Pages, Herve wrote:
...
> Note that this doesn't happen if A is defined as a VIRTUAL class.
To be precise, when A is a VIRTUAL class, it requires at least
one additional level of class extension to break class():
setClass("A", contains="VIRTUAL", slots=c(stuff="ANY"))
setV
Hi,
This is a long-standing bug where 'class(object)' does not
return the actual class of 'object' when used inside a validity
method. Instead it seems to return the class for which the validity
method is defined. For example:
setClass("A", slots=c(stuff="ANY"))
setValidity("A", function(o