DIP69: problem with scope grammar - need a new keyword
Rikki Cattermole via Digitalmars-d
digitalmars-d at puremagic.com
Mon Dec 8 01:55:03 PST 2014
On 8/12/2014 10:45 p.m., Walter Bright wrote:
> I thought I could make this work, but it's a problem. There are two
> meanings for scope when attached to a function:
>
> T func() scope; // the 'this' pointer is 'scope'
T func() scope(this);
or:
T func(scope(this), ARGS);
It is theoretically the first argument after all.
> scope T func(); // the function returns a 'scope' T
>
> I have some ideas, but don't particularly like any of them. But I don't
> want to bias things, so what ideas do you guys have?
More information about the Digitalmars-d
mailing list