Re: [Rd] Reference Classes: Generalizing Reference Class Generator objects?

2010-10-28 Thread Daniel Lee
cter"), methods = list ( initialize = function (text) { initFields(text=paste(text,"\n")) }, print = function () { cat(text) } ) ) All the best, Jon On 28 October 2010 15:13, Daniel Lee wrote: Is it possible to override the $new(...) in

[Rd] Reference Classes: Generalizing Reference Class Generator objects?

2010-10-28 Thread Daniel Lee
Is it possible to override the $new(...) in the reference class generator? I have tried adding a "new" method to the methods of the class, but that is obviously not correct. I have also tried adding it to the class generator, but the class generator still uses the default constructor. As a si