What should happen here?
Daniel N
no at public.email
Thu Sep 23 20:43:15 UTC 2021
On Thursday, 23 September 2021 at 19:54:56 UTC, Steven
Schveighoffer wrote:
>
> You can. But wouldn't you prefer just pushing something on the
> stack?
>
> I don't know, it sort of bugs me and fascinates me that there
> isn't a way to do this easily. The stack is pretty much free to
> use, adding something to some allocated tree inside the GC (and
> then later removing it) isn't.
>
> The use cases are exceedingly small though...
>
> -Steve
I would expect this to work on all platforms and compilers...
scope c = new C;
More information about the Digitalmars-d
mailing list