Re: [Rd] Bug in new() or validObject() in methods package (PR#7922)

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Mon 06 Jun 2005 - 20:55:16 GMT

murdoch@stats.uwo.ca writes:

> Is it doing an extra eval or something? It looks like it:
>
> > x <- expression()
> > x
> expression()
> > eval(x)
> NULL
> >
> > x <- quote(expression())
> > x
> expression()
> > eval(x)
> expression()
> > eval(eval(x))
> NULL
You do realize that the two expression() results are not identical:

> x <- quote(expression())
> class(x)
[1] "call"
> x <- expression()
> class(x)

[1] "expression"

Not that I can fathom what bearing that has on the real problem...

-- 
   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@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue Jun 07 06:59:47 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:06 GMT