Any code in the type block that doesn't look like a field declaration is
evaluated in the scope of the type block and has the effect of preventing
default constructors from being provided. So X is a zero-field type with no
default constructors.

On Mon, Jan 25, 2016 at 7:00 PM, Erik Schnetter <[email protected]> wrote:

> What does the syntax
> ```Julia
> type X
>     Int,Int
> end
> ```
> do?
>
> The resulting type `X` has a size of 0...
>
> -erik
>
> --
> Erik Schnetter <[email protected]>
> http://www.perimeterinstitute.ca/personal/eschnetter/
>

Reply via email to