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

[REBOL] Re: coding the closing parentheses correctly

From: moliad:g:mail at: 1-May-2008 17:47

hi, per my usage, parse converts the binary on entry... and expects strings or block rules... so trying to use binaries directly is quite troublesome, and prone to errors ex: 1)
>> a: #{aabbcc}
== #{AABBCC}
>> parse a ""
== ["=AA=BB=CC"] 2)
>> a: #{aabbcc}
== #{AABBCC}
>> parse a #{BB}
** Script Error: parse expected rules argument of type: block string none ** Near: parse a #{BB} 3)
>> parse/all a [#{AA} copy aa #{BB} (probe aa) #{CC}]
=BB !!! anyone would expect #{BB} When I was doing my parse-driven binary servers, nothing worked when trying to keep the input as a binary, rules would not react as expected, so I ended up converting everything to strings, using labels (words) for control characters and then all worked fine. but yes, I agree, strings and binary practically identical otherwise. -MAx On Thu, May 1, 2008 at 5:27 PM, Gabriele Santilli <> wrote: