Displaying 1 result from an estimated 1 matches for "someinitfoorefinn".
Did you mean:
someinitfoorefinner
2011 Jun 29
1
Ref Classes: bug with using '.self' within initialize methods?
...s has actually been initialized?
Because it seems to me that you can not.
Below is an example that shows that calling '.self$someInitFoo()' within
the initialize method for 'MyClass' does not work (see section "METHODS"
in example below). Instead I have to go with
'someInitFooRefInner(.self=.Object, ...)' (see section "UPDATED METHOD"
in example below). Yet, this is only possible because there actually IS
such a method (I try to stick to the recommendations at ?setRefClass
where it says: "Reference methods should be kept simple; if they need to
do some s...