scope keyword

Jeremy DeHaan via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Nov 19 16:26:12 PST 2015


On Thursday, 19 November 2015 at 23:16:04 UTC, Spacen Jasset 
wrote:
> I thought scope was deprecated, but I see that this is still 
> here: http://dlang.org/attribute.html#scope
>
> Is it just the uses on classes and local variables that are 
> discouraged, but the use in a function signature will continue? 
> in == const scope?

Using scope to allocate on the stack is what you are thinking of, 
but it was only marked for deprecation.

http://dlang.org/deprecate.html#scope%20for%20allocating%20classes%20on%20the%20stack


More information about the Digitalmars-d-learn mailing list