search for: anyreferenceclassnam

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

Did you mean: anyreferenceclassname
2011 May 04
1
General "nil" reference class object
...ULL) An object of class "Bar" <environment: 0x10392c4a0> > is.null(Bar$new(foo=NULL)$foo) [1] TRUE Other languages allow things like "MyClass object = null", and it seems to me that it would be helpful to have a value which will always give TRUE for "is(object,<AnyReferenceClassName>)", but will specifically indicate a nil reference. One possible ad-hoc solution is to define the "empty" object of a base class to be "nil" (see below), but it seems like it would be better to have a value specifically designed for this purpose. > nilObject <- F...