[Rd] crash bug in get("function.name")() (PR#1211)

p.dalgaard@biostat.ku.dk p.dalgaard@biostat.ku.dk
Wed, 12 Dec 2001 14:18:55 +0100 (MET)


Rich Heiberger <rmh@surfer.sbm.temple.edu> writes:

> Peter, your explanation looks right to me, and is certainly consistent
> with the crash behavior of
> get("print.a")
> The R-1.4.0 error message is a good check.
> 
> I would think the explanation should prevent the other example from
> working as well.  But this one works
> get("print.factor")(tmp)
> exactly as expected.
> 
> Both of these examples work correctly in S-Plus 4.5

(S-PLUS 3.4 too)

There's no NextMethod in print.factor, but I was wrong on the other
example: It has NextMethod("print",....) with an explicit generic, so
I don't think it should go near the CAR(call) bit at all.

I'll take a closer look, but there's also a few other nasty bugs
nagging us at the moment, and this looks like it could require surgery
to do_nextmethod with some risk of complications.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             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: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._