[dmd-beta] dmd1beta test

Christian Kamm kamm at incasoftware.de
Sat Jan 30 00:07:36 PST 2010


On Friday 29 January 2010 22:43 Steve Schveighoffer wrote:
> That looks like a bug in your code.  If it was allowed before, I wonder
>  what was put into the o instance.
> 
> anything between {} has to be evaluated at compile time, I think that rule
>  has been in force for a long time.

No it didn't have to be evaluatable at compile time. In response to 
http://d.puremagic.com/issues/show_bug.cgi?id=2380 Walter added this to the 
spec:

-
The static initializer syntax can also be used to initialize non-static 
variables, provided that the member names are not given. The initializer need 
not be evaluatable at compile time.
-

So this sounds like a regression.

Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20100130/0c2a72c1/attachment.pgp>


More information about the dmd-beta mailing list