Phobos PR: `call` vs. `bindTo`
Idan Arye via Digitalmars-d
digitalmars-d at puremagic.com
Wed Aug 6 02:58:18 PDT 2014
On Wednesday, 6 August 2014 at 05:45:09 UTC, Tobias Pankrath
wrote:
> From the PR:
>
> ---
> A better way to bind multiple arguments would be:
>
> ((int x = 2,
> int y = 3,
> ) => (x * y))()
> ---
>
> Could we make this possible?
This is already possible - the problem is that type inference
doesn't work here, so we can't do
((auto x = 2,
auto y = 3,
) => (x * y))()
More information about the Digitalmars-d
mailing list