Manu's `shared` vs the @trusted promise

ag0aep6g anonymous at example.com
Mon Oct 22 10:52:24 UTC 2018


On 22.10.18 11:40, Manu wrote:
> On Mon, Oct 22, 2018 at 2:21 AM ag0aep6g via Digitalmars-d
> <digitalmars-d at puremagic.com> wrote:
[...]
>> I don't agree. I prefer the stronger @trusted. As far as I know, the
>> stronger one is the current one.
> 
> The current one has the critical weakness that it causes **EVERY
> USER** to write unsafe code, manually casting things to shared.

You're conflating @trusted with `shared`. As I've tried to show, your 
version of `shared` probably doesn't need the weaker @trusted. It can 
work with the stronger one.

And I'm not trying to defend the current `shared` in any way.

> You're here spouting some fantasy

With these snarky asides, you're making it difficult to argue for your side.


More information about the Digitalmars-d mailing list