DIP1000: The return of 'Extend Return Scope Semantics'
Walter Bright
newshound2 at digitalmars.com
Fri Jun 11 02:58:07 UTC 2021
On 5/26/2021 5:44 PM, tsbockman wrote:
> Why must it always be the first parameter, instead of always being the last
> parameter, etc.? The choice of **which** parameter gets special treatment is
> arbitrary, and is the part I was complaining about because of how it interacts
> with UFCS.
It is not arbitrary. It actually fits with common Phobos usage. It is especially
true if one writes member functions for a container, doing things like:
stack.push(value);
where value is a pointer.
More information about the Digitalmars-d
mailing list