foo => "bar" key/value literals in D!

Meta via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Mon May 23 18:13:03 PDT 2016


On Tuesday, 24 May 2016 at 01:11:39 UTC, Meta wrote:
> Clever and terrible. Now just modify the code to generate a 
> struct or class and you've invented new anonymous struct/object 
> syntax.
>
> Also, I think this has revealed a bug (or deficiency) in the 
> compiler. If you put this inside the foreach loop:
>
> 		import std.traits;
> 		alias inst = arg!string;
> 		pragma(msg, ParameterIdentifierTuple!inst);
>
> It prints out `tuple("")` both times, meaning that for some 
> reason it sees these lambdas as having no parameter names.

And looks like I filed a bug 2 years ago and then promptly forgot 
about it.


More information about the Digitalmars-d-announce mailing list