Why do "const inout" and "const inout shared" exist?

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Sat Jul 1 15:10:35 PDT 2017


On Saturday, 1 July 2017 at 21:47:20 UTC, Andrei Alexandrescu 
wrote:
> Walter looked at http://erdani.com/conversions.svg and said 
> actually "const inout" and "const inout shared" should not 
> exist as distinct qualifier groups, leading to the simplified 
> qualifier hierarcy in 
> http://erdani.com/conversions-simplified.svg.
>
> Are we missing something? Is there a need for combining const 
> and inout?
>
>
> Thanks,
>
> Andrei

inout is bascially the same as const for all parctical purposes.


More information about the Digitalmars-d mailing list