[Issue 20081] Add pragma(identifier, StringExp)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 25 08:36:28 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20081

--- Comment #1 from anonymous4 <dfj1esp02 at sneakemail.com> ---
If you need only a name, you can just generate an alias:

mixin(q{ alias generatedName=staticName; });

Or forwarding:
mixin(q{ void generatedName(){ staticName(); } });

void staticName()
{
  //code here
}

--


More information about the Digitalmars-d-bugs mailing list