|
Caled Sorcerer
Joined: 21 Oct 2000 Posts: 821 Location: Australia
|
Posted: 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 |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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. |
|
|
|
|
|