Skip to content
Prev 15347 / 63424 Next

Bug in handling of promises?

A followup:  doing an assignment of the value works even after the
return:
function( H ) {
    cat('Evaluate H to get \n')
    print(H)
    return(environment())
}
Evaluate H to get 
function(x) x^2
<promise: 0117C2D0>
Error: attempt to apply non-function
[1] 1

So the oddity is that I can evaluate H within f() without any problem,
but outside of f() I need extra work before I can do it.

Duncan Murdoch


On Tue, 08 Mar 2005 18:00:10 +0000, Duncan Murdoch
<murdoch@stats.uwo.ca> wrote :