Mixin function names

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 18 14:18:41 PDT 2017


On Tuesday, 18 July 2017 at 20:57:51 UTC, Moinak Bhattacharrya 
wrote:
> Is it possible to mixin function names? IE something like this:

Only if you mixin the entire function.

But what I like to do is to write the function with some internal 
name, then do `mixin("alias "~ new_name ~ " = 
your_internal_name;");` so it is available as new name but still 
written normally.


More information about the Digitalmars-d mailing list