classes by value

Dgame r.schuett.1987 at gmail.com
Fri Dec 15 11:10:42 UTC 2017


On Friday, 15 December 2017 at 09:18:23 UTC, Seb wrote:
> On Thursday, 14 December 2017 at 16:40:33 UTC, Petar Kirov 
> [ZombineDev] wrote:
>>
>> ```
>> scope foo = new Foo();
>> ```
>
> That's about to be deprecated in favor of scoped!Foo:
>
> https://dlang.org/deprecate.html#scope%20for%20allocating%20classes%20on%20the%20stack

Since scope was revived with DIP-1000 we will see about that. I 
doubt that the deprecation will stay.


More information about the Digitalmars-d mailing list