ID:1714198
 
Applies to:DM Language
Status: Open

Issue hasn't been assigned a status value.
Procs need to be real objects, but until that happens (ie a while), it'd be nice to be able to deal with them a little easier via a "realname" (yes that's a terrible name) var for the end of the path (since that's what call() uses), and maybe a keyword for referencing itself (eg "this" or "self").

Example:
/proc/callAfter(object,procName,delay)
spawn(delay)
if(object)
call(object,procName)()
return

/obj/proc/doSomething()
world << "See you in 50 ticks"
callAfter(src,this.realname,50)
return




I've found the __func__ preprocessor pretty useful in C++, what about an equivalent __PROC__ for DM which expands to the path of the current procedure, and a __PROC_NAME__ which expands to just the name?

That might be a little easier to implement.
This sounds like a venture into the dark depths...