[dmd-internals] Delete 4 lines, fix 8 ICE bugs...

Steve Schveighoffer schveiguy at yahoo.com
Wed Nov 3 07:16:27 PDT 2010


----- Original Message ----

> From: Don Clugston <dclugston at googlemail.com>
> 
> According to TDPL, const T[] is supposed to mean const(const(T)[]).
> But  currently, it isn't; it's const(mutable(T)[])
> I've added a patch to bug 4434.  The patch is very simple (just delete 4 
>lines).

Wait, so when you say const(mutable(T)[]), you mean head-const?  That is, the 
pointer and length are const, but the data can be changed?

Because when you say const(...), ... is supposed to be transitive const.  The 
terminology you are using is confusing to me.

Obviously your patch is good, since it fixes the bugs, but I'm not sure I 
understand the explanation.

-Steve



      


More information about the dmd-internals mailing list