Something like ADL from C++?

Alexandru Ermicioi alexandru.ermicioi at gmail.com
Tue Dec 3 19:34:21 UTC 2024


On Tuesday, 3 December 2024 at 11:55:50 UTC, Manu wrote:
> Has anyone ever experimented with a pattern like this? 
> Essentially, I can't work out how to expand /combine an 
> overload set to include symbols from multiple imports....

as a compromise you could have an uda that packs custom 
serialisation defined on type itself or field of that type, then 
you can make serializer employ it when it sees it somewhere.

Best regards,
Alexandru.


More information about the Digitalmars-d mailing list