This is a problem I've run into a few times now trying to make an alias that refers to variable/table names directly.
Specifically, I'm trying to make an alias ^display (.+)$ that I can use to look at values without having to go in and change a script every time. The issue is that if I just do display(matches[2]), the function gets a string as its argument which isn't particularly helpful.
Is there some function I can use to...untype(?)....the string?
Alias for display()
Re: Alias for display()
I think I grasp that function, though I don't quite understand what e is doing there - it seems to be set and never used for anything.
I'm also not really sure I understand how f becomes f(). If the loadstring doesn't return anything, then it asserts the loadstring to test whether it's empty (Couldn't this just be solved by using + instead of * in the regex? And what does raising an error in Mudlet actually do?). Then there's this f() business that I'm not really grasping.
I'm also not really sure I understand how f becomes f(). If the loadstring doesn't return anything, then it asserts the loadstring to test whether it's empty (Couldn't this just be solved by using + instead of * in the regex? And what does raising an error in Mudlet actually do?). Then there's this f() business that I'm not really grasping.