Page 1 of 1

referencing Function Name

Posted: Wed Nov 02, 2011 6:51 pm
by townsend
I'm writing a error routine, and each time I call this handler, I have to pass a hard coded literal string with the name of the function, where the error occurred. For instance:

Code: Select all

error.msg("my.handler.name", result.msg)
Is there some way to reference the name of a function from within the function itself?
I couldn't find anything in the Dictionary.

Re: referencing Function Name

Posted: Wed Nov 02, 2011 7:22 pm
by mwieder
put param(0)

Re: referencing Function Name

Posted: Wed Nov 02, 2011 7:28 pm
by townsend
Thanks again, Mark!

Re: referencing Function Name

Posted: Wed Nov 02, 2011 7:38 pm
by mwieder
np - it's actually in the documentation, but you have to know to look under param in order to find that out. So if you already know where it is you can find it, otherwise you're out of luck.