opIndex for type list

data pulverizer data.pulverizer at gmail.com
Mon Aug 24 14:27:20 UTC 2020


On Monday, 24 August 2020 at 14:19:14 UTC, data pulverizer wrote:
> I am trying to implement `opIndex` (e.g. T[i]) for types in a 
> struct.

p.s. I know I could just write a separate `get` template, but 
`AliasSeq` has opIndex and opSlice operators, so I wonder whether 
it is possible to get those in this case.



More information about the Digitalmars-d-learn mailing list