Re: Mixin function names

2017-07-18 Thread Moinak Bhattacharrya via Digitalmars-d
On Tuesday, 18 July 2017 at 21:29:05 UTC, Timon Gehr wrote: On 18.07.2017 23:28, Moinak Bhattacharrya wrote: On Tuesday, 18 July 2017 at 21:22:47 UTC, Timon Gehr wrote: On 18.07.2017 22:57, Moinak Bhattacharrya wrote: Is it possible to mixin function names? IE something like this: template

Re: Mixin function names

2017-07-18 Thread Moinak Bhattacharrya via Digitalmars-d
On Tuesday, 18 July 2017 at 21:22:47 UTC, Timon Gehr wrote: On 18.07.2017 22:57, Moinak Bhattacharrya wrote: Is it possible to mixin function names? IE something like this: template strFunc(string s){ int mixin(s)(int a){ return a+1; } } ... No. If not, is something like

Re: Mixin function names

2017-07-18 Thread Moinak Bhattacharrya via Digitalmars-d
On Tuesday, 18 July 2017 at 20:57:51 UTC, Moinak Bhattacharrya wrote: Is it possible to mixin function names? IE something like this: template strFunc(string s){ int mixin(s)(int a){ return a+1; } } If not, is something like this being looked at? Or, just

Mixin function names

2017-07-18 Thread Moinak Bhattacharrya via Digitalmars-d
Is it possible to mixin function names? IE something like this: template strFunc(string s){ int mixin(s)(int a){ return a+1; } } If not, is something like this being looked at?