<div dir="ltr">Is there a way to alias attributes?<div><br></div><div>alias my_alias=pure nothrow @trusted @nogc;</div><div>asm @my_alias {...}<br><div><br><div>This came up here:</div><div><a href="https://github.com/Hackerpilot/libdparse/issues/50">https://github.com/Hackerpilot/libdparse/issues/50</a><br></div><div><br></div><div>Or at least to do the following in a less ugly way?</div><div><br></div><div><div>static if(__VERSION__<2067) enum asm_att=``;</div><div>else enum asm_att=`pure nothrow @nogc`;</div><div><br></div><div><div>//lots of statements like this</div><div></div><div>mixin(`asm `~asm_att~` {... }`);<br></div></div></div><div><br></div><div><br></div><div><br></div></div></div></div>