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
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Tue Nov 28, 2006 2:33 am   

[1.17] Parsing weirdness
 
Two examples of weirdness with same bit of text. I'd mistyped a number so chatted for people to ignore it

I typed:
ooc (Ignore the '28' bit)

cmud sent to the mud:
ooc 28



So out of curiosity I tried
#show (Ignore the '28' bit)

cmud shows:
Ignorethe'28'bit
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Zugg
MASTER


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

PostPosted: Tue Nov 28, 2006 5:54 pm   
 
It's a side effect of the parenthesis causing expression evaluation, although I'm not sure why it's different between the alias and #show. The #show result is the correct one, so that's pretty wierd alright.
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Tue Nov 28, 2006 6:08 pm   
 
it wasn't an alias. the first one was just typing into the command line and hitting return
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Zugg
MASTER


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

PostPosted: Tue Nov 28, 2006 6:19 pm   
 
Right, but CMUD parses it as if "ooc" was an alias. Play with it in the Compiled Code tab and you will see that a line like this gets compiled into an alias reference. Then at runtime, if the alias isn't found, then CMUD just sends the text to the MUD.
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