search for: subfunc3a

Displaying 1 result from an estimated 1 matches for "subfunc3a".

2002 Sep 04
3
strange things with eval and parent frames
...appening, as per below. Note BTW that this is NOT a classical scoping problem. Exactly the same 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 exp...