Accessing memory after destroy

Johan Engelen via Digitalmars-d digitalmars-d at puremagic.com
Sat Jul 29 15:36:43 PDT 2017


On Saturday, 29 July 2017 at 22:15:41 UTC, Moritz Maxeiner wrote:
>  Since in your example the (stack) variable `foo` is still 
> referring to the (heap) memory location of the destroyed object

Ah yes of course, thanks!

- Johan




More information about the Digitalmars-d mailing list