shared - i need it to be useful

Stanislav Blinov stanislav.blinov at gmail.com
Wed Oct 17 07:24:13 UTC 2018


On Wednesday, 17 October 2018 at 05:40:41 UTC, Walter Bright 
wrote:

> When Andrei and I came up with the rules for:
>
>    mutable
>    const
>    shared
>    const shared
>    immutable
>
> and which can be implicitly converted to what, so far nobody 
> has found a fault in those rules...

Here's one: shared -> const shared shouldn't be allowed. Mutable 
aliasing in single-threaded code is bad enough as it is.


More information about the Digitalmars-d mailing list