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

[REBOL] parse consumption

From: anton::lexicon::net at: 10-Sep-2002 0:10

I have here a bit of confusion: parse "abc" [start: "abc" (remove/part start 3) :start end] ;== false parse "abc" [start: to "abc" (remove/part start 3) :start end] ;== true The first parse "consumes" the "abc" before removal, and the second one doesn't. Why does it matter whether "abc" is consumed or not? I am setting the input position to the start of the string afterwards with :start. I have verified that before the removal, start is at the beginning of the string. Also, this is the same both in latest beta and last full release. Anton.