DMD 1.035 and 2.019 releases

Walter Bright newshound1 at digitalmars.com
Thu Sep 4 10:26:38 PDT 2008


Tomas Lindquist Olsen wrote:
> This is one of those things I really dislike about D :(
> It's really nice that we can override struct initialization, but the 
> fact that it eliminates the possibility to override it (with a nice 
> syntax) makes it much less appealing IMHO.
> 
> The most important point to me, is that old thing about static struct 
> initializer and struct literals have different syntaxes, and that the 
> static variant is much more flexible.
> 
> I would have loved to see the static struct initializer syntax become an 
> expression. If the problem is ambiguity, why not just prefix the {} 
> braces with the struct name?

The static struct initializers more or less are inherited from C. I'd 
eventually like to abandon them and go completely to the S(args) syntax.


More information about the Digitalmars-d-announce mailing list