search for: refobjectclass

Displaying 1 result from an estimated 1 matches for "refobjectclass".

2012 Aug 05
1
setting invalid fields on reference classes sometimes allowed
...callNextMethod(x, "b", value)}) foo$b <- 3 At first, we can set the non-existent field "a" without any error (I don't think this is the intended behavior). Then we set a silly override on $<- and things start to behave as expected: Error in envRefSetField(x, what, refObjectClass(x), selfEnv, value) : "b" is not a field in class "Foo" What am I doing wrong? Thanks, Michael [[alternative HTML version deleted]]