[R] how to get a primitive function object

Yi Zhang yizhang84 at gmail.com
Fri Jan 23 19:47:11 CET 2009


On Fri, Jan 23, 2009 at 5:15 AM, Patrick Burns <pburns at pburns.seanet.com> wrote:
> If I understand properly, you want '<-' to be
> a generic function, which it currently isn't.
> There may be a way to fake that (I can't think
> of any).
>
> But I'm wondering if you should rethink what
> you want.  The only reason that I can think of
> that you would want to change '<-' is because
> of some extra side effect that you want to happen.
> That is not in the spirit of R.
Yes, I wanted some side effect of '<-', to have my own reference
counting for some large resource. I guess this is already the most
non-intrusive way I can think of--initially I modified R's source
code, an even worse option.
>
> Patrick Burns


-- 
Yi




More information about the R-help mailing list