The new, new phobos sneak preview
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Mon Apr 6 15:09:41 PDT 2009
Denis Koroskin wrote:
> On Tue, 07 Apr 2009 01:23:20 +0400, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> wrote:
>
>> Hi everybody,
>>
>> [snip]
>> Random r;
>> foreach (n; take(100, uniform(0, 100)) { ... }
>>
>
> Warning: unreferenced variable 'r'. :)
Rats :o). Now uniform doesn't need an explicit Random object, but I
still created one out of reflex.
Andrei
More information about the Digitalmars-d
mailing list