Mix struct types in the same array

tirithen tirithen at gmail.com
Wed Dec 18 22:17:21 UTC 2019

On Wednesday, 18 December 2019 at 22:11:10 UTC, Sebastiaan Koppe 
> If you know all types up front you can use the Sumtype library 
> on code.dlang.org

Thanks, it's a good starting point, the best would be if I only 
needed to define that the struct would implement void applyTo(ref 
User user) so that could be run in the loop to update the User 

But I'll try the Sumtype library, that takes me forward, thanks 
for the answer!

More information about the Digitalmars-d-learn mailing list