Sounds like you want [dynamic 
dispatch](https://nim-lang.org/docs/manual.html#multiminusmethods). Note that 
`Rect | Convex` is not a concrete type, so you can't have `seq[Rect | Convex]`.

Reply via email to