Everything I said is still my opinion and I would write your example like:
type
FooKind = enum a, b, c
Foo = object
case kind: FooKind
of a, b: bar: int
of a:
a: int
of b:
b: int
of c:
c: int
Run
- Alternatives to using an object variant type with a duplicat... danielrearden
- Re: Alternatives to using an object variant type with a... Araq
- Re: Alternatives to using an object variant type wi... danielrearden
- Re: Alternatives to using an object variant typ... jrfondren
- Re: Alternatives to using an object variant... cdome
- Re: Alternatives to using an object va... mratsim
- Re: Alternatives to using an objec... cdome
- Re: Alternatives to using an o... Araq
- Re: Alternatives to using an o... cdome
- Re: Alternatives to using an o... jrfondren
