You need to be on 0.4 to do this.
On Sat, 2015-05-02 at 20:40, Krishna Subramanian <[email protected]> wrote:
> I would like to know how to do something like this-
> typealias Corpus Array{Int,1}
>
> and write a constructor for it. Currently, if I do -
>
> Corpus() = Array(Int,0)
>
> I get-
>
> ERROR: cannot define function Corpus; it already has a value
>
> I am sure others have encountered this problem before. I went through
> https://github.com/JuliaLang/julia/issues/1470 but I am still not able to
> figure out what is the issue involved.
>
> Thanks,
> Krishna