Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: 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
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: 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?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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 {}.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net