Compile-Time RNG

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Wed Jan 20 17:49:27 PST 2016


On 01/21/2016 01:32 AM, tsbockman wrote:
> On Wednesday, 20 January 2016 at 23:21:04 UTC, CTRNG wrote:
>> I managed to create a compile-time random number generator.
>>
>> Proof of concept, with some explanatory comments:
>> http://dpaste.dzfl.pl/668646ce6d71
>>
>> Just thought this might be of interest to some of you here.
>
> That's clever (and devious).

It only works because compile-time introspection is ill-defined though. 
I don't expect it to keep working indefinitely.


More information about the Digitalmars-d mailing list