http://d.puremagic.com/issues/show_bug.cgi?id=1356


Don <clugd...@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugd...@yahoo.com.au
         Resolution|                            |FIXED


--- Comment #1 from Don <clugd...@yahoo.com.au> 2011-12-22 00:59:59 PST ---
(In reply to comment #0)
> struct foo { int a = 4; }
> 
> static foo f = {a:void,}; // Void initializer allowed in struct initializer.
> writefln(f.a); // prints 0

This isn't a bug.

> 
> // Struct initializer can have any number of leading and trailing commas,
> whereas only a trailing one is allowed.
> static foo f = {,,,,a:1,,,,};

Fixed in 2.055 and 1.070.

> 
> // Compiler hangs if this is at the end of a file.
> static foo f = {

Fixed in 1.023.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to