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

[REBOL] One more thing - Odd behavior with setting variables Re:

From: agem:crosswinds at: 25-Jul-2000 15:56

[rebol[] paths: ["blah1/" "blah blah2/" ] a: second paths ? a paths: [%blah1/ %"blah blah2/" ] a: second paths ? a ] A is a string of value: "blah blah2/" A is a file of value: %blah blah2/ if you use some functions, they may handle strings and files differently.
>> exists? %bak
== true
>> exists? "bak"
** Script Error: exists? expected target argument of type: file url. ** Where: exists? "bak" ---- Jeff Rubin wrote
> At 04:08 AM 7/25/00 -0500, you wrote: > >This: > > > path: ["blah1" "blah2" "blah3" "blah4" "blah5"] > > > > is better written as: > > paths: [%blah1/ %"blah blah2/" ... > > paths: [%blah1/ %"blah blah2/" (i dont get it) > > this makes no sense to me. > > first there is a % then a space then %" then " > > did ya make a typo in there, cause I can't find a pattern that works. >
he changed the content? demonstrates how to embed spaces in files. but confusing.