From p.dalgaard at biostat.ku.dk  Thu Sep 20 00:49:02 2007
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Thu, 20 Sep 2007 00:49:02 +0200
Subject: [Rd] delayedAssign
In-Reply-To: <971536df0709191230p3a62d94g1dcf8f978dad6305@mail.gmail.com>
References: <971536df0709191230p3a62d94g1dcf8f978dad6305@mail.gmail.com>
Message-ID: <46F1A75E.3030709@biostat.ku.dk>

Gabor Grothendieck wrote:
> The last two lines of example(delayedAssign) give this:
>
>   
>> e <- (function(x, y = 1, z) environment())(1+2, "y", {cat(" HO! "); pi+2})
>> (le <- as.list(e)) # evaluates the promises
>>     
> $x
> <promise: 0x032b31f8>
> $y
> <promise: 0x032b3230>
> $z
> <promise: 0x032b3268>
>
> which contrary to the comment appears unevaluated.  Is the comment
> wrong or is it supposed to return an evaluated result but doesn't?
>
>   
My guess would be that the behaviour is unintended. It should be harder 
than that to get promises visible at the user level. Luke?

>> R.version.string # Vista
>>     
> [1] "R version 2.6.0 alpha (2007-09-06 r42791)"
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>   


-- 
   O__  ---- Peter Dalgaard             ?ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



[Rd] delayedAssign
Peter Dalgaard