type T1
x::Int #It can be any type
end
#x instead of x::Int (The type given in type definition)
Base.convert(::Type{T1}, x)=T1(x)
a = T1[1:3;]
a' #--> gives error trying to convert T1 to Int.
b = T1[1:3;]
b[1] = a[1] #--> the same error
b[1] = T1(1) #--> the same error
- Re: [julia-users] Is this a feature or bug? Milan Bouchet-Valat
- Re: [julia-users] Is this a feature or bug? Lutfullah Tomak
- Re: [julia-users] Is this a feature or bug? Lutfullah Tomak
- Re: [julia-users] Is this a feature or bu... Milan Bouchet-Valat
- Re: [julia-users] Is this a feature o... Lutfullah Tomak
- Re: [julia-users] Is this a feat... Milan Bouchet-Valat
- Re: [julia-users] Is this a ... Lutfullah Tomak
- Re: [julia-users] Is this a ... Milan Bouchet-Valat
- Re: [julia-users] Is this a ... Lutfullah Tomak
- Re: [julia-users] Is this a feature or bug? Stefan Karpinski
- Re: [julia-users] Is this a feature or bu... Lutfullah Tomak
- Re: [julia-users] Is this a feature o... Tim Holy
- Re: [julia-users] Is this a feat... Lutfullah Tomak
