Create class on stack

Mike via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 7 03:50:21 PDT 2017


On Sunday, 6 August 2017 at 15:47:43 UTC, Moritz Maxeiner wrote:

> If you use this option, do be aware that this feature has been 
> scheduled for future deprecation [1].
> It's likely going to continue working for quite a while 
> (years), though.
>
> [1] 
> https://dlang.org/deprecate.html#scope%20for%20allocating%20classes%20on%20the%20stack

FYI:  http://forum.dlang.org/post/np1fll$ast$1@digitalmars.com

"Yes, it will have to be updated - but I didn't want to adjust it 
before DIP1000 spec is finalized. Rationale that was driving 
deprecation of scope storage class is becoming obsolete with 
DIP1000 implemented but not before."

Mike


More information about the Digitalmars-d-learn mailing list