Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: 'do - question

From: andreas:bolka:gmx at: 11-Nov-2001 1:27

Saturday, November 10, 2001, 11:46:09 PM, Andreas wrote:
> -- snip -- > [ > REBOL [] > bl: [ > print "a" > print "b" > if ... [ ??? ] > print "c > ] > do bl > ] > -- snip
maybe this example is a bit misguiding. so i'll better describe the situation. i'm 'do load'-ing a script (A) within a wrapper script (W). now script A contains lot's of 'quits which are quite nasty, as they'll not only halt the evaluation of script A but the whole interpreter. so i'm groping for some way to temporarily overwrite 'quit ahead of do loading script A so that whenever a 'quit occurs within A, the evaluation halts, but the wrapper script can continue and the interpreter is running on. as i'm do loading script A in a loop, overriding quit with a function that does some cleanup work and then really 'quits won't help. -- Best regards, Andreas mailto:[andreas--bolka--gmx--net]