|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: 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... ;) |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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.
|
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: 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... ;) |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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.
|
|
|
|
|
|