[Issue 17261] Implicit cast from static array to immutable should not be allowed
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Thu Mar 16 10:56:52 PDT 2017
    
    
  
https://issues.dlang.org/show_bug.cgi?id=17261
ag0aep6g at gmail.com changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ag0aep6g at gmail.com
--- Comment #2 from ag0aep6g at gmail.com ---
I think immutable doesn't matter here. Code is also accepted (wrongly) when you
convert to a `char[]` instead of a `string`. Also, implicit and explicit
slicing are both accepted (and both wrong). Also accepted in `@safe` code.
dmd's -dip1000 mode correctly rejects this. I don't know if this counts as
fixed.
--
    
    
More information about the Digitalmars-d-bugs
mailing list