[Issue 6297] cast() does not remove const or immutable on arrays and pointers
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu May 16 12:55:03 UTC 2024
    
    
  
https://issues.dlang.org/show_bug.cgi?id=6297
Nick Treleaven <nick at geany.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick at geany.org
--- Comment #1 from Nick Treleaven <nick at geany.org> ---
The spec (now) says:
> Casting with no type or qualifiers removes any top level const, immutable, shared or inout type modifiers from the type of the UnaryExpression
https://dlang.org/spec/expression.html#cast_qualifier
Note 'top level'. So I think this is invalid.
--
    
    
More information about the Digitalmars-d-bugs
mailing list