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

[REBOL] an ugly solution to a newbie problem!

From: caw::cs::mu::oz::au at: 22-May-2001 4:47

I had previously asked how to do this:
>server: "machine-1" >listen-port: open/lines tcp://:server:8000 >This (obviously) doesn't work...what I want to get is >listen-port: open/lines tcp://machine-1:8000 >How to you get the value of a word "in-the-middle" of an expression?
Crass experimentation lead to : server: "machine-1" s: join (join "tcp://" :server) ":8000" listen-port: open/lines (do :s) :s has type? string! which wont be accepted in open but (do :s) has type? url! and it works... but the MUST be a more elegant way. I'd be grateful for help! chris