Usecase:
some_obj
proc/some_proc()
world << "Currently in [procname]!"
ID:109945
Feb 23 2011, 12:34 am
|
|||||||
| |||||||
It would be beneficial if you could retrieve the name of the procedure from within itself. Since 'set name' exists, I'm thinking this is simply a matter of exposing the name. Perhaps with a special 'procname' variable, which is local in scope to the procedure?
Usecase: some_obj |
I suspect you'd actually want a procedure for this, like currentpath().
The idea would be it returns the full path of where you are in the stack, so in the example provided: /some_obj/proc/some_proc() Any magic with hierarchy may make this tricky to implement though, I suppose, but it seems like a run-time thing to me. I suppose it would help if Alathon could clarify his intended use scenario. |
It'd also be better for dyanamically naming verbs and changing the desc, etc, especially since using the new() proc for it, I think is kind of stupid. >:(