Is there something like anonymous struct?

anonymous anonymous at example.com
Mon Mar 4 18:15:27 PST 2013


On Tuesday, 5 March 2013 at 02:01:47 UTC, eGust wrote:
> Can I write something like this:
>
> __gshared immutable foo = {
> auto
> 	func1	= &fn1,
> 	func2	= &fn2,
> ...
> }
>
> Or just
>
> ... = {
>   &fn1, &fn2, ...
> }

import std.typecons: tuple;
__gshared immutable foo = tuple(&fn1, &fn2, ...);


More information about the Digitalmars-d mailing list