[dmd-internals] Changes for pure, nothrow, and @safe done for the moment?

Andrei Alexandrescu andrei at erdani.com
Mon Jun 27 03:27:45 PDT 2011


On 6/27/11 2:38 AM, David Nadlinger wrote:
> On 6/27/11 5:50 AM, Andrei Alexandrescu wrote:
>> […] There's absolutely never a good
>> reason to call a pure function and ignore its result, unless you just
>> want to keep the CPU warm.
>
> There is, especially with pure/nothrow inference for delegates – a
> prominent example is std.concurrency.receive, which I brought up in the
> commit comments yesterday:
> https://github.com/D-Programming-Language/dmd/commit/9b50184c#commitcomment-448720.

That would enter under the empty body case.

Andrei


More information about the dmd-internals mailing list