Re: [R-pkg-devel] Assigning values to fields in Reference Classes

2020-05-11 Thread Per Nyfelt
an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Mon, May 11, 2020 at 11:27 AM Per Nyfelt wrote: Hi, I have been playing with alternative ways to assign values to fields in refer

[R-pkg-devel] Assigning values to fields in Reference Classes

2020-05-11 Thread Per Nyfelt
Hi, I have been playing with alternative ways to assign values to fields in reference classes. Besides the "standard" <<- there are two other ways that also "seems to work". One is using .self$fieldName assigned with <- and the the other one is field(fieldName, value). With regards to the