what might work is if you have a
seq[tuple[elemType: EnumOfElem, ref: refToData]]
Runthen cast it based on the elemType. But not tested and might have other issues i'm not aware of right now.
what might work is if you have a
seq[tuple[elemType: EnumOfElem, ref: refToData]]
Runthen cast it based on the elemType. But not tested and might have other issues i'm not aware of right now.