Unfortunately I don't think there's a good way yet. There is [this proposal](https://github.com/nim-lang/RFCs/issues/56) in the meantime.
- Generic way to set discriminant value that works on both C and... haxscramper
- Generic way to set discriminant value that works on both ... Hlaaftana
- Generic way to set discriminant value that works on b... haxscramper
- Generic way to set discriminant value that works ... haxscramper
- Generic way to set discriminant value that wo... Araq
- Generic way to set discriminant value th... haxscramper
- Generic way to set discriminant valu... haxscramper
- Generic way to set discriminant ... haxscramper
