removeClass("A")
setClass('A',representation=representation(a="numeric"))
setMethod('initialize','A', function(.Object,...,a){
.Object@a=a
.Object
})
ok up to here
removeClass("B")
setClass('B',representation=representation(b="numeric"),contains="A")
This code fails on the definition of class "B" , without I had any chance to add an initialize method for "B", and without I even create any object
Error in .local(.Object, ...) : argument "a" is missing, with no default
It does not fail if I add a default value for the a parameter in initialize.A method
Can anyone explain why ?