tupleof of class instance... but enumerate _all_ the instance variables
monkyyy
crazymonkyyy at gmail.com
Fri Jun 27 22:40:43 UTC 2025
On Friday, 27 June 2025 at 22:33:25 UTC, Andy Valencia wrote:
> tupleof works for struct and class instances, but explicitly
> documents that it ignores instance variables from any
> superclass.
>
> Is there any way to enumerate _all_ the instance variables, not
> just the ones present in the specific instance's class?
>
> Thanks,
> Andy
`__traits(allMembers` but it wont be useful, and youll need to
find some other filter, etc. etc.
More information about the Digitalmars-d-learn
mailing list