[Issue 12074] Add BlockStatement to TemplateSingleArgument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 13 02:46:20 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=12074

Basile-z <b2.temp at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com

--- Comment #3 from Basile-z <b2.temp at gmx.com> ---
I like the idea but i see an ambiguity:

---
int call(alias fun)()
{
    return fun();
}

int call(int value)()
{
    return value+1;
}

void main()
{
    call!{ return 0; }();
}
---

which overload is called ? The one that will doe CTFE and then call!0 or the
other ?

--


More information about the Digitalmars-d-bugs mailing list