I was wondering if it was possible to create two types that explicitly 
reference each other.

The following doesn't work in IJulia (Julia v0.3.3)

type A
x::B
end

type B
x::A
end

I can fake it by making a dummy abstract supertype of B (say _B) and using 
it in the definition of A, but this seems to be a rather ugly hack in what 
otherwise is a pretty clean language...

Reply via email to