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

[REBOL] Re: pop problems

From: gscottjones:mchsi at: 16-Oct-2002 16:37

From: "G. Scott Jones" ...
> Try something like: > > func [port buf][ > while [(line: system/words/pick port/sub-port 1) <> "."] [ > if none? line [ > print "Got none .. aborting" > break/return buf > ] > insert tail buf line > insert tail buf newline > ] > buf > ]
Ooops. I forgot that the break would break out of the while not the function. Obviously my addition should be of no benefit. I guess that is an additional problem with not being able to test on the error condition before sending. Sorry. --Scott Jones