[Rd] Method dispatch fails for autoloaded methods (PR#642)
Peter Dalgaard BSA
25 Aug 2000 00:41:27 +0200
Thomas Lumley <firstname.lastname@example.org> writes:
> On Thu, 24 Aug 2000 email@example.com wrote:
> > (As mentioned before, on R-devel)
> > This code snippet shows what the Subject above says :
> The problem is that isFunction is false for diff.ts, since it is only a
> promise, not a function.
> I think the solution is for usemethod to force the promise (in lines 225ff
> of objects.c), but I'm not sure how to do this.
Yes, must be the right thing to do. We must be doing the same thing
with regular function lookups, no? Not that there are many (if any)
relevant cases, but
Error: couldn't find function ".TkRoot"
will cause the .TkRoot promise to be forced, loading tcltk *before* it
can figure out that it isn't a function. I see no reason for object
methods to behave any differently.
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (firstname.lastname@example.org) FAX: (+45) 35327907
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: email@example.com