DMD 1.004 release
    Sean Kelly 
    sean at f4.ca
       
    Sat Jan 27 18:41:21 PST 2007
    
    
  
Jeff Nowakowski wrote:
> Walter Bright wrote:
>> What's happening is you're writing into the string literal, which is 
>> not allowed. String literals should be regarded as readonly.
> 
> So is there a reasonable way for D to enforce this?  I haven't been 
> following the recent const discussion in detail.  Would it help here and 
> actually be applied to literal strings in a future D?
This is enforced on Linux but not Win32.  I suspect this means it's an 
OS feature that Windows doesn't provide, but I've never heard anyone say 
for sure either way.
Sean
    
    
More information about the Digitalmars-d-announce
mailing list