Improvement in pure functions specification

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Dec 22 09:40:09 PST 2016


On 12/22/2016 11:45 AM, Johan Engelen wrote:
> On Wednesday, 21 December 2016 at 22:08:58 UTC, Andrei Alexandrescu wrote:
>>
>> Well randomness is not available in pure functions.
>
> Internet discussions... a misunderstanding, I should've been more careful.
> I meant "an arbitrary boolean value", not something random (e.g. the
> version(LDC) thing).
>
>> Anyhow I've reformulated the wording and added an example. The sheer
>> fact it works is pretty awesome.
>>
>> https://github.com/dlang/dlang.org/pull/1528
>
> Perhaps you forgot to push, I see no update.

Thanks! Pushed just now. -- Andrei


More information about the Digitalmars-d mailing list