Enough introspection to report variable name of calling argument

2015-10-19 Thread Handyman via Digitalmars-d-learn
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

Re: Enough introspection to report variable name of calling argument

2015-10-19 Thread anonymous via Digitalmars-d-learn
On Monday, October 19, 2015 04:14 PM, Handyman wrote: > 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