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

[REBOL] Re: comments for beginner ugly code ;-)

From: gabriele::colellachiara::com at: 14-Mar-2005 14:49

Hi Anton, On Monday, March 14, 2005, 2:33:20 PM, you wrote: AR> but we found a bug with that with certain filenames (like 1.s3m) AR> recently so I recommend the first way for stability at the moment. AR> (pity, as the second way handles "/" so much better.) To clarify, that's not a bug. (And, it doesn't apply to the above case either.)
>> somedir: %/path/to/somedir/
== %/path/to/somedir/
>> f: %1.s3m
== %1.s3m
>> somedir/:f
== %/path/to/somedir/1.s3m About your ticket, you can write:
>> somedir/%1.s3m
== %/path/to/somedir/1.s3m but of course not:
>> somedir/1.s3m
** Syntax Error: Invalid decimal -- 1.s3m ** Near: (line 1) somedir/1.s3m for the same reason that you can't write:
>> [somedir 1.s3m]
** Syntax Error: Invalid decimal -- 1.s3m ** Near: (line 1) [somedir 1.s3m] and so you would write:
>> join somedir %1.s3m
== %/path/to/somedir/1.s3m and NOT:
>> join somedir 1.s3m
** Syntax Error: Invalid decimal -- 1.s3m ** Near: (line 1) join somedir 1.s3m Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/