DIP 50 - AST macros

Timon Gehr timon.gehr at gmx.ch
Sun Nov 17 14:21:42 PST 2013


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)


More information about the Digitalmars-d mailing list