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

[REBOL] Re: quick help please!

From: jelinem1:nationwide at: 11-Jul-2001 16:13

I won't argue that there are problems with dynamically creating paths [from strings]. I've beat my head against the wall for some time over this and gave up. However, I found a "work-around": Instead of:
>> probe to-path rejoin ["submenu/" i "/1"]
>> probe do rejoin ["submenu/" i "/1"]
That is, leave the "path" as a string. To evaluate it, use 'do. Don't know exactly what context this uses, though I know it works when refering only to a global context (that is, 'submenu is defined globally). - Michael From: [sterling--rebol--com] on 07/11/2001 03:37 PM Please respond to [rebol-list--rebol--com] Sent by: [rebol-bounce--rebol--com] To: [rebol-list--rebol--com] cc: Subject: [REBOL] Re: quick help please! Never try to make path! types from strings. They do not have the right context and will not work. The solution: print submenu/:i/1 == %overview.html Presto! Sterling