TIP: Click on subject to list as thread! ANSI
echo: os2rexx
to: Mike Ruskai
from: Eddy Thilleman
date: 1999-11-03 09:20:25
subject: FrontDoor/Mailser and Re

Hello Mike,

30 Oct 99 19:55, MIKE RUSKAI wrote to EDDY THILLEMAN:

ET>> Has the concatenation operator (||) advantages over the syntax
ET>> '\'variable ? Are there any differences, if so what are they?

MR> Easier to see what you're trying to do.

OK, I see. :)

MR> If you accidentally put a space between the two, it becomes space
MR> concatenation (breaking the filename), rather than abuttal.

I'm aware of that. :)

MR> If you stick with the concatenation operator, you'll notice when a
MR> space is where it doesn't belong.  I *always* use them, even to put a
MR> space in the string (string||' '||restofstring).

with the ||, extra spaces between the strings doesn't influence the script

string || ' ' || restofstring

  is the same as

string||' '||restofstring

but without the || the above two concatenations are different

(but you already know that)

MR> As a result, I've never had a problem with problems due to undesirable
MR> concatenation side-effects.

I got never stuck on that. :)  But I see your point.

  Greetings   -=Eddy=-        email: eddy.thilleman@net.hcc.nl

... "The adventures of WIN.INI the Pooh" by W. Gates
--- GoldED/2 3.0.1
3615/7
* Origin: Windows98 is a graphic DOS extender (2:500/143.7)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.