Do you perhaps want it like this? type Store[T] = ref object of RootObj val: T dep: seq[Store[T]] StoreInt = Store[int] converter toInt[T: int](x: Store[T]): T = x.val var a = StoreInt(val: 5, dep: @[]) echo a.toInt
- Is something like this possible? solo989
- Re: Is something like this possible? def
- Re: Is something like this possible? StasB
- Re: Is something like this possible? mashingan
- Re: Is something like this possible? solo989
- Re: Is something like this possible? mashingan