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

[REBOL] Re: Rebol Enhancement Proposal - Embedding spaces in path! datatypes

From: ryanc:iesco-dms at: 10-May-2001 12:37

Seems that it already understands quoted strings to some degree...
>> a: [aa [aaa 1 bbb 2] "bb" [ccc 1 ddd 2] ]
== [aa [aaa 1 bbb 2] "bb" [ccc 1 ddd 2]]
>> p: to-path [a "bb"]
== a/"bb"
>> p
== [ccc 1 ddd 2] --Ryan Andrew Martin wrote:
> Normal path! datatypes look like this: > word/sub-word/sub-sub-word > Currently Rebol doesn't understand strings in a path. I'm proposing that > Rebol should return things using a string as a path. For example: > > block: [ > "A string with spaces" [ > Test [ > Item 99 > ] > ] > ] > > To refer to "99" it would be nice if Rebol understood the following as a > path: > block/"A string with spaces"/Test/Item > and for convenience the following format: > /"block/A string with spaces/Test/Item" > Both of the above will return "99. The last format is based on Rebol's > format for long filenames with embedded spaces, like: > %"Directory/Sub-Directory/My File.txt" > > Opinions? Problems? > > Andrew Martin > ICQ: 26227169 http://members.nbci.com/AndrewMartin/ > -><- > > -- > To unsubscribe from this list, please send an email to > [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Ryan Cole Programmer Analyst www.iesco-dms.com 707-468-5400 I am enough of an artist to draw freely upon my imagination. Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world. -Einstein