Re: [julia-users] Issue with return values from subtypes

2016-01-22 Thread Scott Jones
On Friday, January 22, 2016 at 1:03:05 AM UTC-5, Mauro wrote: > > you mean why the second errors: > > julia> Irrational > Irrational{sym} > > julia> Irrational{sym} > ERROR: UndefVarError: sym not defined > > ? Irrational is all that is needed. Would this help: > I guess my point is, why

[julia-users] Issue with return values from subtypes

2016-01-21 Thread Scott Jones
I ran across something strange today, with some of the test code, that used something like: for x in [subtypes(Real) ; subtypes(Complex)] ... end The issue is that subtypes(Real) returns: *julia> **subtypes(Real)* *4-element Array{Any,1}:* * AbstractFloat * * Integer * *

Re: [julia-users] Issue with return values from subtypes

2016-01-21 Thread Mauro
you mean why the second errors: julia> Irrational Irrational{sym} julia> Irrational{sym} ERROR: UndefVarError: sym not defined ? Irrational is all that is needed. Would this help: julia> Irrational{TypeVar(:T)} Irrational{T} On Thu, 2016-01-21 at 19:21, Scott Jones