You can't redefine types in Julia. That's one of the limitations that lets
Julia generate fast code.


On Fri, May 23, 2014 at 2:21 PM, Kuba Roth <[email protected]> wrote:

> Hi there,
> In repl I define a custom composite type such as:
> julia> type qqq
>           rx::Float32
>           ry::Float32
>           rz::Float32
>       end
>
> and then I add another field which throws the following error:
> ERROR: invalid redefinition of constant qqq
>
> Could someone please explain why this is not allowed?
>
> Thanks,
> kuba
>

Reply via email to