classes by value
Dgame
r.schuett.1987 at gmail.com
Fri Dec 15 13:02:01 UTC 2017
On Friday, 15 December 2017 at 12:56:41 UTC, Jonathan M Davis
wrote:
> On Friday, December 15, 2017 11:10:42 Dgame via Digitalmars-d
> wrote:
>> On Friday, 15 December 2017 at 09:18:23 UTC, Seb wrote:
>> > [...]
>> Since scope was revived with DIP-1000 we will see about that.
>> I doubt that the deprecation will stay.
>
> DIP 1000 is half killing it. DIP 1000 is using scope for
> something very different, and it has nothing to do with putting
> classes on the stack. However, as an optimization, it may put a
> class on the stack if it determines that the the class object
> is unique. Anyone who wants to guarantee it should be using
> std.typecons.scoped.
>
> - Jonathan M Davis
Since scope is used inside dmd I'm sure it will stay the way it
is or the way you've described, yes.
More information about the Digitalmars-d
mailing list