![](templates/Classic/images/spacer.gif) |
Fang Xianfu GURU
![](images/avatars/1763170544a2093e7e85da.gif)
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Apr 18, 2008 3:44 pm
[2.22] Minor #sayadd issue |
#sayadd only takes one parameter, unlike the other printish commands (#say, #sayprompt, #show etc) which concat their parameters. This means that this:
#say Hello world!
prints "Hello world!" but this:
#sayadd Hello world!
only prints "Hello". Minor issue because all you have to do is make it one parameter (#sayadd "Hello world!"), but it's inconsistent. |
|
|
![](templates/Classic/images/spacer.gif) |
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Fri Apr 18, 2008 4:40 pm |
Shouldn't you be doing it this way anyway?
#say {Hello world!}
#sayadd { Hello again world!}
#say is letting you be lazy but correct syntax uses the {}
Or at least that is the way I always understood it. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
![](templates/Classic/images/spacer.gif) |
Fang Xianfu GURU
![](images/avatars/1763170544a2093e7e85da.gif)
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Apr 18, 2008 5:03 pm |
Yes. My point's simply that it's not consistent; either they should all let you be lazy, or none of them should. #sayadd doesn't have any other parameters, so it's not a problem changing it I don't think.
|
|
|
![](templates/Classic/images/spacer.gif) |
gamma_ray Magician
Joined: 17 Apr 2005 Posts: 496
|
Posted: Fri Apr 18, 2008 5:24 pm |
IIRC, wasn't #say changed to not allow laziness in one of the first few CMud releases, but everyone hated it?
|
|
|
![](templates/Classic/images/spacer.gif) |
Fang Xianfu GURU
![](images/avatars/1763170544a2093e7e85da.gif)
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Apr 18, 2008 7:12 pm |
Couldn't find anything in the version history that'd suggest that, but that doesn't mean it wouldn't happen. I'm not surprised people hated it, though.
|
|
|
![](templates/Classic/images/spacer.gif) |
Zugg MASTER
![](images/avatars/164475849040f41c23b22fe.gif)
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Apr 23, 2008 7:51 pm |
Yeah, this is done on purpose. The only reason the older commands still support this is for zMUD compatibility. But it's a huge parser kludge to enable this, so I don't really want to keep kludging new commands too. I just want people to start remembering to use {}.
|
|
|
![](templates/Classic/images/spacer.gif) |
|
|