From p.dalgaard@biostat.ku.dk  Wed Dec 12 13:11:07 2001
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 12 Dec 2001 14:11:07 +0100
Subject: [Rd] crash bug in get("function.name")() (PR#1211)
In-Reply-To: <200112120020.fBC0KKL2512179@surfer.sbm.temple.edu>
References: <200112112232.XAA15690@pubhealth.ku.dk>
 <3C16912C.75907CDA@statistik.uni-dortmund.de>
 <200112120020.fBC0KKL2512179@surfer.sbm.temple.edu>
Message-ID: <x23d2g37o4.fsf@blueberry.kubism.ku.dk>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


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