From p.dalgaard at biostat.ku.dk  Mon Jun  6 22:55:16 2005
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Mon Jun  6 22:55:24 2005
Subject: [Rd] Bug in new() or validObject() in methods package (PR#7922)
In-Reply-To: <20050606200820.068F0A1C3@slim.kubism.ku.dk>
References: <20050606200820.068F0A1C3@slim.kubism.ku.dk>
Message-ID: <x2is0r8atn.fsf@turmalin.kubism.ku.dk>

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


[Rd] Bug in new() or validObject() in methods package (PR#7922)
Peter Dalgaard