[dmd-beta] dmd 1.065 and 2.050 beta

Steve Schveighoffer schveiguy at yahoo.com
Wed Oct 27 19:52:42 PDT 2010





----- Original Message ----
> From: Jonathan M Davis <jmdavisProg at gmx.com>
> 
> Well, this change  is going to break a lot of code (and the fact that string 
> literals are  immutable on Linux but not Windows sure isn't going to help with 

> code  portability). We really need to find a permanent solution for this 
>problem 
>
> soon.

You are misunderstanding the issue.

In an immutable(char)[], the array is mutable, the data it points to is 
immutable.  The case being discussed is immutable(char[]), where both the data 
being pointed to *and* the array itself are immutable.  You should not be able 
to call popFront on such an array.  In no case is the compiler allowing you to 
change the immutable data being pointed to, that's not what the bug is about.

I agree with everything David has said about it, breaking existing code now is a 
much better solution than breaking it later, especially when Phobos is in such a 
volatile state.

-Steve



      


More information about the dmd-beta mailing list