You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think "re-using" the name AbstractRNG is not ideal: abstract type AbstractRNG{T<:Number} <: Base.Random.AbstractRNG end
AbstractRNG is defined and exported by Base and RandomNumbers
using RandomNumbers
AbstractRNG
results in following:
WARNING: both RandomNumbers and Base export "AbstractRNG"; uses of it in module Main must be qualified
ERROR: UndefVarError: AbstractRNG not defined
Thus code that uses AbstractRNG without RandomNumbers, will no longer work when using RandomNumbers, without explicitly qualifying. i.e. that code will need modifying.
This can be problematic when one doesn't have access to the modules containing references to AbstractRNG.
Maybe this is some form of type piracy?
The text was updated successfully, but these errors were encountered:
I think "re-using" the name
AbstractRNG
is not ideal:abstract type AbstractRNG{T<:Number} <: Base.Random.AbstractRNG end
AbstractRNG
is defined and exported byBase
andRandomNumbers
results in following:
Thus code that uses
AbstractRNG
withoutRandomNumbers
, will no longer work whenusing RandomNumbers
, without explicitly qualifying. i.e. that code will need modifying.This can be problematic when one doesn't have access to the modules containing references to
AbstractRNG
.Maybe this is some form of type piracy?
The text was updated successfully, but these errors were encountered: