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

[REBOL] Re: REBOL Enhancement Proposals (REPs)

From: g:santilli:tiscalinet:it at: 27-Sep-2001 15:37

Andrew Martin wrote:
> b: first [a/"a test"/(12 + i)]
Actually,
>> to-path [word "string" [block] (whatever)]
== word/"string"/[block]/(whatever) It's just that the scanner is not able to parse that beast. However it mostly works:
>> block: ["One" 1 "Two" 2]
== ["One" 1 "Two" 2]
>> p: to-path [block "One"]
== block/"One"
>> p
== 1 and:
>> block: [(paren) "does this"]
== [(paren) "does this"]
>> p: to-path [block (paren)]
== block/(paren)
>> p
== "does this" My 2 cents, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/