how to shorten templates structs name?

Daniel Kozak kozzi11 at gmail.com
Tue Oct 10 13:48:34 UTC 2017


Use alias this

Dne 10. 10. 2017 1:30 odpoledne napsal uživatel "drug via
Digitalmars-d-learn" <digitalmars-d-learn at puremagic.com>:

> using classes I can make an inherited class of templated class and avoid
> too long mangled name:
> ```
> class TemplatedClass(A, Very, Much, Args, Here) { ... }
>
> class ShortenClass : TemplatedClass!(A,Very, Much, Args, Here) { ... };
> ```
> Now ShortenClass has a nice mangling.
>
> What can be done in case of struct?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20171010/f3ab0b6d/attachment.html>


More information about the Digitalmars-d-learn mailing list