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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Zwartje
Novice


Joined: 08 Feb 2007
Posts: 45

PostPosted: Thu Feb 08, 2007 3:17 pm   

Question on alias names
 
In zmud I had a few aliases with names starting with - or = (e.g -su =ke)
It seems i cannot name aliases in Cmud that way, which is rather annoying as I am used to these aliases for years now.

I can create them in the package editor no problem, but when I type =ke in the command line, the alias seems unknown ('I do not follow your meaning')

Any ideas?
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Thu Feb 08, 2007 3:25 pm   
 
Confirmed, just about every non-alphanumeric character doesn't work.
_________________
Rorso's syntax colouriser.

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


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Thu Feb 08, 2007 4:48 pm   
 
Somewhere Zugg mentions this but I don't remember what his plans were for the future.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Thu Feb 08, 2007 7:44 pm   
 
TMany are now special characters which are reserved for use by the parser (-+*/=) to name a few. Because the new parser is stricter on syntax these will not be available for alias names. If I recall correctly there were no plans to change this but Zugg will correct me if I'm wrong.
_________________
Asati di tempari!
Reply with quote
Zugg
MASTER


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

PostPosted: Thu Feb 08, 2007 8:47 pm   
 
Part of this is a bug. I *did* add support for aliases that start with non-alphabetic characters. You can only define them within the Package Editor by editing the alias name (cannot use the #ALIAS command to create wierd alias names). Also, these wierd aliases can only be used on the command line, and not within other scripts.

However, when I tried this, it seems to be broken in the current version.

Officially, it is not recommended that you use non-alphabetic characters at the beginning of the alias name. And these "wierd" aliases will never be supported within other scripts...they will only work from the command line.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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