[julia-users] Re: Polymorphic functions definition

2016-02-27 Thread Adrian Salceanu
Thanks, I managed to figure it out by re-re-re-reading the docs. I was suspecting that the answer will be about parametric types. function df_to_m{T<:Jinnie.Jinnie_Model}(df::DataFrames.DataFrame, m::T) # works! sâmbătă, 27 februarie 2016, 09:31:23 UTC+1, Adrian Salceanu a scris: > > Hi, >

[julia-users] Re: Polymorphic functions definition

2016-02-27 Thread Adrian Salceanu
Still not sure though how to go about using the actual types as params, rather than an instance of that type. sâmbătă, 27 februarie 2016, 14:56:47 UTC+1, Adrian Salceanu a scris: > > Thanks, I managed to figure it out by re-re-re-reading the docs. I was > suspecting that the answer will be

[julia-users] Re: Polymorphic functions definition

2016-02-27 Thread Adrian Salceanu
Thanks, I managed to figure it out by re-re-re-reading the docs. I was suspecting that the answer will be about parametric types. function df_to_m{T<:Jinnie.Jinnie_Model}(df::DataFrames.DataFrame, m::T) # works! Is this the only way? I'm fine with it (it's very explicit upon reading) but