opApply and const

Janice Caron caron800 at googlemail.com
Sun Dec 9 01:05:27 PST 2007


On 12/9/07, Robert Fraser <fraserofthenight at gmail.com> wrote:
> Janice Caron wrote:
> >     invarant C = new C;
> >
> > will fail to compile, and there is no "inew".
>
> invariant C = cast(invariant) new C();

I didn't forget that, I just didn't see the point of it.

What I did forget, though, is invariant structs. Now they do make
sense! And surely opApply has to work for those, too.

So we're back up to twelve again!



More information about the Digitalmars-d mailing list