Deriving a struct from another one via template: Easy way to propagate UDAs?

Adam D Ruppe destructionator at gmail.com
Sat Mar 16 13:09:13 UTC 2024


On Thursday, 14 March 2024 at 23:19:37 UTC, Inkrementator wrote:
> * Is UDA propagation possible without string mixins?

@(__traits(getAttributes, thingYouWantToForward))
void yourNewThing() {}

> * Are template mixins vulnerable to name collisions?

http://dpldocs.info/this-week-in-d/Blog.Posted_2020_01_20.html#understanding-mixin-templates


More information about the Digitalmars-d-learn mailing list