Binding rvalues to ref parameters redux
Nicholas Wilson
iamthewilsonator at hotmail.com
Wed Mar 27 04:14:59 UTC 2019
On Wednesday, 27 March 2019 at 01:38:40 UTC, Andrei Alexandrescu
wrote:
> Work has been underway on redoing DIP 1016. I haven't made a
> pull request yet as it's a bit early. Looking for high-level
> observations:
>
> https://gist.github.com/andralex/e5405a5d773f07f73196c05f8339435a
>
> Thanks in advance for any feedback.
> void function(int a, int b, int c) fun();
> int g();
> int h(int);
> int i();
> int j();
> fun(g(), h(j()), i()); // evaluates g() then j() then h() then
> i()
> // after which control is transferred to
> the callee
should be
fun()(g(), h(j()), i()).
More information about the Digitalmars-d
mailing list