On Sun, Apr 19, 2009 at 1:47 PM, Jose A. Ortega Ruiz <[email protected]> wrote: > i've just pushed a patch doing that. for setting `use', i'm using > `use+', but the documentation of the latter mentions it should be used > only in parsing words: is there a better way?
That's because usually in/use are only bound in parsing words. What you're doing is in effect simulating the environment that a parsing word runs in. > 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. Slava ------------------------------------------------------------------------------ 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
