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
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Mon May 04, 2009 8:21 am   

%pathexpand
 
%pathexpand("whn2h2nh2n3hnhw2h2w2h2wh2whwh2wkwh")
^ that works.

%pathexpand(.pathname)
%pathexpand(pathname)
^ There ought to be some way to convert a named path to a stringlist, but no such syntax works.
_________________
Athlon 64 3200+
Win XP Pro x64
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Mon May 04, 2009 9:21 am   
 
Not a solution, but an idea for one... %path is even open...

Syntax: %path(name, arguments)

Without arguments it does what Caled wants.

With arguments it works like #PATH does.
_________________
Discord: Shalimarwildcat
Reply with quote
Zugg
MASTER


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

PostPosted: Mon May 04, 2009 7:19 pm   
 
No Shalimar, that's not really a good solution. The issue is that there are several %pathxxx functions that could benefit from being able to use a stored path name. So Caled is correct that this should be handled. CMUD could first check the path name to see if it exists. So the only problem would be if a path value is the same as some other path name (the famous "news" path name example). But that case can be handled simply by using a dot in front of the path. For example:

%pathexpand(".news") -> n|e|w|s
%pathexpand("news") -> expand the value of the path stored in the "news" path

This is a pretty simple enhancement, so I've added it to the to-do list.
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