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: bhandley::zip::com::au at: 25-Jul-2000 21:12

> > > path: ["blah1" "blah2" "blah3" "blah4" "blah5"] > > > > is better written as: > > paths: [%blah1/ %"blah blah2/" ... > > paths: [%blah1/ %"blah blah2/" (i dont get it) >
In this case paths is a block. A block groups a number of values. You've shown two values - both represent rebol filenames (see the Rebol user's guide - files -> names). The first filename represents a directory, while the second represents a filename that has a space between "blah" and blah2/ . The % indicates a filename. So here is an example combining both concepts that will read the "Program Files" directory on Windows.
>> read %"/c/Program Files/"
Hope it helps. Brett.