Re: [Rd] Question about copying reference objects using the initialize method

2011-11-02 Thread Aleix Ruiz de Villa
organ : > On 10/31/2011 08:53 AM, Aleix Ruiz de Villa wrote: >> >> Dears, >> >> I have a question about copying reference objects using the initialize >> method. >> >> 1) If the latter has no arguments, there is no problem to copy an object. >>

[Rd] Question about copying reference objects using the initialize method

2011-11-01 Thread Aleix Ruiz de Villa
e = "numeric") ) myClass$methods(setPar = function(extValue = 1, ...){ value <<- extValue return() }) newObject = myClass$new() newObject$setPar(extValue = 2) copyObject = newObject$copy() It works fine. Anyway I am curious to know if there