Skip to content
Prev 6630 / 63424 Next

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

I don't think I'll get to look at this cerefully today, but here is
just a thought: My recollection is that NextMethod needs to be called
only from within a usemethod dispatch because the dispatch needs to
set up stuff in the environment that NextMethod needs.  If you do

print.a <- function(...) NextMethod()

and then call print.a directly then the stuff NextMethod needs isn't
set up, so NextMethod can't do anything useful.  I think the
do_nextmethod tries to detect this and raise an error, but for some
reason it isn't detecting the problem here.

luke
On Wed, Dec 12, 2001 at 02:11:07PM +0100, Peter Dalgaard BSA wrote: