Displaying 1 result from an estimated 1 matches for "subfunc3b".
Did you mean:
subfunc3a
2002 Sep 04
3
strange things with eval and parent frames
...things happen if I define subfunc1 etc. outside the body of
test.parent.funcs.
Second example:
> test.parent.funcs2_ function() {
subfunc3_ function() sys.call( -1)
x_ subfunc3(); print( x)
subfunc3a_ function() eval( quote( sys.call()), parent.frame())
x_ subfunc3a(); print( x)
subfunc3b_ function() evalq( sys.call(), parent.frame())
x_ subfunc3b(); print( x)
}
> test.parent.funcs2()
test.parent.funcs2()
eval(expr, envir, enclos)
eval(expr, envir, enclos)
Hmmm. Again, I'd expect all three to do the same thing (have I
misunderstood?). What's even more odd, is that thi...