[e-lang] Bug (0.8.36n): interp.setTopScope has no effect
Kevin Reid
kpreid at mac.com
Sun Jul 2 20:03:58 EDT 2006
? interp.setTopScope(e`def x := 1`.evalToPair(interp.getTopScope())
[1])
? x
# problem: Failed: Undefined variable: x
This is what I was attempting to do:
def load(file) {
def [v, s] := <elang:syntax.EParser>(file.getTwine()) \
.evalToPair(interp.getTopScope())
interp.setTopScope(s)
return v
}
--
Kevin Reid <http://homepage.mac.com/kpreid/>
More information about the e-lang
mailing list