Slava Pestov <[email protected]> writes: >> i need to sometimes preserve the value assigned to the variable >> 'restarts' (and sometimes not). also, using the above idiom would make >> user evaluations of top forms containing assignments no-ops. thus, >> unless i'm missing something, wrapping my evaluations as above wouldn't >> work, would it? > > You can parse in a with-scope, which produces a quotation, and call > the quotation outside of the with-scope.
sorry if i'm being dumb, but i want the quotation to be called with the in/use values set during parsing, which are lost outside the with-scope, no? or will the quotation, when called, remember the context where it was parsed? (for instance, the quotation corresponds to evaluating a word definition in a vocab that the user is editing, and i want 'in' to be that vocab and 'use' to contain the corresponding USINGs) jao ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
