const struct not accepted as initializer by dmd 2.00x

torhu fake at address.dude
Thu Jul 12 17:14:36 PDT 2007

torhu wrote:
> I'm wondering why 'const Inner ic = { 5 };' isn't considered const 
> enough to be accepted as an initializer for outer.ic.  I'm trying to 
> make this code work in D version 1 too, and since it's for an example, 
> I'd like avoid any string mixins or other ugly workarounds.

I guess the real question is: is it a bug that ic isn't accepted as an 

More information about the Digitalmars-d-learn mailing list