Define an order for allMembers traits

Adam D Ruppe destructionator at gmail.com
Thu Aug 24 00:26:05 UTC 2023


On Thursday, 24 August 2023 at 00:11:07 UTC, John Colvin wrote:
> Just sort allMembers by .offsetof? You might need a small 
> amount of compile time gymnastics but it’s doable.

Adds quite a bit of potential complication - what if two things 
have the same offset of? What if they don't have one? Doing this 
without care can bloat compile times too...

but yeah, it was my first thought too tbh, with the appropriate 
filters you can make that work.



More information about the Digitalmars-d mailing list