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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ dmd-beta mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/dmd-beta
