Is the following possible in D? To call a (unary) function f with variable a, and let f print:

Called with argument named 'a'.

I am of course asking for a generic solution, independent of the actual variable name (in this case, 'a'). I am aware that I am likely asking the impossible because of how the function call mechanism is implemented in most programming languages, hence in D. Still, it might be possible given D's stong introspection capabilities / traits / pragma's / whathaveyou's.

Reply via email to