TIP: Click on subject to list as thread! ANSI
echo: os2rexx
to: EDDY THILLEMAN
from: MIKE RUSKAI
date: 1999-10-30 19:55:00
subject: FrontDoor/Mailser and Re

Some senseless babbling from Eddy Thilleman to David Noon
on 10-27-99  22:15 about FrontDoor/Mailser and Re...

 ET> Hello David,

 ET> 24 Oct 99 20:33, David Noon wrote to Francois Massonneau:
 
 FM>> 'inetmail' SemaMailer = SemaforeDir||'\'SemaFile
 
 DN> I would use a concatenation operator (||) :
 
 DN>    SemaMailer = SemaforeDir||'\'||SemaFile

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

Easier to see what you're trying to do.  If you accidentally put a space
between the two, it becomes space concatenation (breaking the filename),
rather than abuttal.  If you stick with the concatenation operator, you'll
notice when a space is where it doesn't belong.  I *always* use them, even
to put a space in the string (string||' '||restofstring).  As a result,
I've never had a problem with problems due to undesirable concatenation
side-effects.  I have seen a few people posting here (and comp.lang.rexx)
who do run into those problems using space concatenation.

Mike Ruskai
thannymeister@yahoo.com


... Conscience gets a lot of credit that belongs to cold feet.

___ Blue Wave/QWK v2.20
--- Platinum Xpress/Win/Wildcat5! v3.0pr2
209/7211
103
* Origin: FIDO QWK MAIL & MORE! WWW.DOCSPLACE.ORG (1:3603/140)

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™.