Thread overview
[Issue 12074] Add BlockStatement to TemplateSingleArgument
Feb 13, 2019
Basile-z
Feb 13, 2019
Vladimir Panteleev
Mar 21, 2020
Basile-z
Dec 17, 2022
Iain Buclaw
February 13, 2019
https://issues.dlang.org/show_bug.cgi?id=12074

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

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

--- Comment #3 from Basile-z <b2.temp@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 ?

--
February 13, 2019
https://issues.dlang.org/show_bug.cgi?id=12074

--- Comment #4 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> ---
That is a semantic issue and completely orthogonal to this syntactic one.
`call!({ return 0; })();` has the same issue as your example.

--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=12074

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

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

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=12074

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4

--