how to define my own traits

Nicholas Wilson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Mar 27 15:38:33 PDT 2017


On Monday, 27 March 2017 at 21:18:31 UTC, XavierAP wrote:
> When I first read about inout as a device to obviate code 
> duplication typical in C++ const ref overloads, I liked it but 
> I assumed it was implemented by lowering it into the actual 
> duplicate overloads. Though I'm not even sure right now if such 
> overloading is allowed in D.
>
> I haven't tried if this happens with other compilers than DMD...

Well given that dmd, ldc and gdc all share the same front end...



More information about the Digitalmars-d-learn mailing list