Mixin function names

Moinak Bhattacharrya via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 18 14:32:52 PDT 2017


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 strFunc(string s){
>>>>      int mixin(s)(int a){
>>>>          return a+1;
>>>>      }
>>>> }
>>>> ...
>>>
>>> No.
>>>
>>>> If not, is something like this being looked at?
>>>
>>> The suggestion has been made, but there was no extensive 
>>> discussion so far.
>>> https://github.com/dlang/DIPs/blob/master/DIPs/DIP1010.md#mixin-identifiers
>>>
>> 
>> That's the DIP for static foreach. Is there a separate DIP for 
>> mixin identifiers?
>
> Not yet.

:( I might look into making one, then. This feature would scratch 
a rather sizable itch.


More information about the Digitalmars-d mailing list