On Mon, Oct 8, 2012 at 9:22 AM, Hadley Wickham wrote:
> Hi all,
>
> It's possible to capture the expression associated with a promise
> (using substitute). Is there any way to capture the environment
> associated with a promise? Similarly, is there any way to tell if
> something is a promise with
Sylvain,
I can see two possible reasons for this (both just speculative without an
actual example):
a) it could be a conflict in (probably system) headers. isupper is typically a
macro so I suspect what happens is that you have two definitions and depending
on the sequence of includes and only
Promises are an implementation detail -- we need to be able to change
them, optimize them away, etc, so there is a limit on what we want to
expose. Allowing a query of whether a binding is delayed or not
should be OK but would want to think that through more carefully
before committing to this.
Dear all,
I'm facing a strange behavior in the the C code of a R package. This package,
"rcqp", is a wrapper on an existing program that I did not write, "CWB".
In this package, on a linux (ubuntu and debian) system, the code :
printf(%d\n", isupper('A'));
outputs :
0
When compiled with
On 12-10-08 9:22 AM, Hadley Wickham wrote:
Hi all,
It's possible to capture the expression associated with a promise
(using substitute). Is there any way to capture the environment
associated with a promise? Similarly, is there any way to tell if
something is a promise without accidentally eval
Hi all,
It's possible to capture the expression associated with a promise
(using substitute). Is there any way to capture the environment
associated with a promise? Similarly, is there any way to tell if
something is a promise without accidentally evaluating it?
Thanks!
Hadley
--
RStudio / Ri