> In Julia, you can do the same thing, it is just spelled differently.  You 
> could do  

   x = zeros(MyMatrix, 3, 4)

where you have defined

     Base.zeros(::Type{MyMatrix}, m, n) = .....

Show trimmed content 

Of course in Julia you can do anything you want.
However, is it recommended to redefine the meaning of generic functions?
I would assume zeros(MyMatrix,3,4) creates a 3x4 Array{MyMatrix,2}

Reply via email to