RFC, ensureHeaped
Jonathan M Davis
jmdavisProg at gmx.com
Fri Nov 12 17:10:58 PST 2010
On Friday, November 12, 2010 13:34:03 Pillsy wrote:
> bearophile wrote:
> > Pillsy:
> [...]
>
> > > It has one other advantage, in that you can use the `scope`
> > > keyword for things other than varargs, like closures.
> >
> > That scope syntax is already supported for closures, and it's partially
> > implemented (or fully implemented, I am not sure).
>
> Oh, cool. I had no idea that `scope` was supported for function arguments
> at all.
in is actually const scope. So
void func(in Foo foo)
would be
void func(const scope Foo foo)
I'm not quite sure how that will work with scope going away though.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list