inferred size for static array initialization

Marco Leise via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon May 2 10:06:57 PDT 2016


Am Mon, 2 May 2016 18:52:11 +0200
schrieb ag0aep6g <anonymous at example.com>:

> On 02.05.2016 15:53, Marco Leise wrote:
> >    immutable tab = { static enum S[] s = [  
> 
> `static enum`? What kind of black magic is this?

I don't know, but it works, haha.

-- 
Marco



More information about the Digitalmars-d-learn mailing list