Obtaining argument names in (variadic) functions

data pulverizer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 16 14:33:16 PDT 2016


On Wednesday, 16 March 2016 at 21:05:43 UTC, JR wrote:
> On Wednesday, 16 March 2016 at 20:43:09 UTC, jkpl wrote:
>> I try to anticipate the reason why you want this. [...]
>
> I use something *kinda* sort of similar in my toy project to 
> print all fields of a struct, for debugging purposes when stuff 
> goes wrong. Getting the names of the member variables is 
> crucial then.
>
> http://dpaste.dzfl.pl/748c4dd97de6

That's a nice learning piece. I think "with" is cool, reminds me 
of a nice R feature.


More information about the Digitalmars-d-learn mailing list