DIP 50 - AST macros

Simen Kjærås simen.kjaras at gmail.com
Sun Nov 17 15:03:32 PST 2013


On 17.11.2013 23:21, Timon Gehr wrote:
> On 11/17/2013 08:41 PM, Simen Kjærås wrote:
>>
>> I decided to abandon sanity. Luckily, only for the named parameters. I
>> now have this code working:
>>
>>
>> void test(int a, int b = 2, string c = "foo", int d = 14) {
>> }
>>
>> alias test2 = nameify!test;
>>
>> void main() {
>>      test2(1, Args.d = 4, Args.c = "bar");
>> }
>>
>> With reasonable error messages for duplicate and missing parameters, as
>> well as type mismatches.
>> ...
>
> Still missing overload resolution. :o)

Please don't tempt me. :p

-- 
   Simen


More information about the Digitalmars-d mailing list