GC operates in LIFO sequence?
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Wed Aug 9 06:57:04 PDT 2017
On Wednesday, 9 August 2017 at 13:46:29 UTC, MGW wrote:
> Memory allocation and deallocation when an application is being
> completed in GC operates in FIFO sequence.
Not really, it operates in an undefined sequence... just whenever
it gets around to it in scans.
If destruction order is important, you should use RAII or
explicit destruction...
More information about the Digitalmars-d
mailing list