Hi Jerry,

Can you file an issue?  This is something that is supposed to work.

Cheers,
   Kevin

On Mon, Jan 11, 2016 at 6:14 AM, Jerry Xiong <[email protected]> wrote:

>
>
> Seems that Any[...] is not exactly equal to {...} in Julia 0.4. What is
> the best way to rewrite {a b;c d} ?
>
> julia> {1 [1,2];[1,2,3] 4}
>
> WARNING: deprecated syntax "{a b; c d}".
> Use "Any[a b; c d]" instead.
> 2x2 Array{Any,2}:
>  1          [1,2]
>   [1,2,3]  4
>
> julia> Any[1 [1,2];[1,2,3] 4]
> ERROR: DimensionMismatch("mismatch in dimension 1 (expected 1 got 2)")
>  in cat_t at abstractarray.jl:850
>  in hcat at abstractarray.jl:875
>  in typed_hvcat at abstractarray.jl:1026
>

Reply via email to