Not really by design so much as you can't really guarantee
destruction because it is garbage collected. You can use a struct
instead or scoped
(https://dlang.org/library/std/typecons/scoped.html).
- Threads not garbage collected ? Alex via Digitalmars-d
- Re: Threads not garbage collected ... Jerry via Digitalmars-d
- Re: Threads not garbage collected ... rikki cattermole via Digitalmars-d
- Re: Threads not garbage collec... Alex via Digitalmars-d
- Re: Threads not garbage collected ... Jonathan M Davis via Digitalmars-d
- Re: Threads not garbage collected ... David Nadlinger via Digitalmars-d
- Re: Threads not garbage collec... Jonathan M Davis via Digitalmars-d
- Re: Threads not garbage collec... David Nadlinger via Digitalmars-d
- Re: Threads not garbage collected ... ketmar via Digitalmars-d
- Re: Threads not garbage collec... Alex via Digitalmars-d
- Re: Threads not garbage co... ketmar via Digitalmars-d
- Re: Threads not garbage co... Guillaume Piolat via Digitalmars-d