Closed my-little-repository closed 1 year ago
I think this is about Base.range
, extended by Winston.jl.
This breaks the behavior for BigInt
s since BigInt
is a Real
. This extended version is called, which is incorrect for BigInt.
I do not know why Winston.jl extends range in such a way. At least, what can be done is to limit the Real
parameters to Union{AbstractFloat, AbstractIrrational, Rational}
. Perhaps, considering why extending this method is needed might be a better, since pretty much all the range
calls are handled by Winston.jl
Probably because Winston.jl
was developed against something like Julia v0.2? So its really just because of Julia having changed quite strongly.
I can't reproduce the bug with julia 1.6.6 and same version of Winston v0.15.2. I don't have julia 1.7.2 at hand for a test though.
EDIT: the bug can be reproduced with julia 1.7.3 and julia 1.8.2.
The following weird behavior appears with julia 1.7.1 and Winston v0.15.2
julia> big(1//2) 1//2