[Issue 14251] synchronized (mtx) doesn't check attributes (pure, const)
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Sep 20 20:00:07 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=14251
--- Comment #19 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to Martin Nowak from comment #18)
> (In reply to Andrei Alexandrescu from comment #13)
> > Can someone produce an example in which invariants promised by D's system
> > are broken?
>
> Just look at core.sync, none of the methods can be implemented const or
> pure, still they get called from const/pure code.
That's not a problem, the runtime is expected to contain nonportable code.
--
More information about the Digitalmars-d-bugs
mailing list