pass variable names

BCS none at anon.com
Thu Jul 9 23:15:33 PDT 2009


Hello Saaa,

>> No.
>> 
>> You should be able to get the name using an alias:
>> 
>> void func(alias var)()
>> {
>> writefln(var.stringof);
>> }
> Can this be combined with the tuple parameter?
> 

I'll seconds this, there doesn't seem to be any way to generate tuples of 
aliases and this is another cases where it would be handy.




More information about the Digitalmars-d-learn mailing list