Example for Mir-Random fails

Brad bjazmoore at outlook.com
Sat Apr 3 22:08:43 UTC 2021


On Saturday, 3 April 2021 at 22:04:33 UTC, Bastiaan Veelo wrote:
> On Saturday, 3 April 2021 at 19:02:34 UTC, Brad wrote:
>> I just do not know enough about the D libraries to figure out 
>> what is wrong.  I know it is a case of type mismatch.  The 
>> example appears on the Mir-Random page as listed under DUB:
>> https://code.dlang.org/packages/mir-random
>>
>> [...]
>
> I think you are seeing conflicts between Phobos and Mir: they 
> both provide unpredictableSeed and Random. If you want to use 
> the ones from Mir, be sure to not import std or std.random, or 
> use fully qualified names.
>
> — Bastiaan.

You nailed it.  I just now figured that out.  It never ceases to 
amaze me how much time can my lost to a simple mistake like that.

Thank you.


More information about the Digitalmars-d-learn mailing list