So after calling destroy(s), s is null, so it segfaults when you try to use it.
Re: Question about Object.destroy
Adam D. Ruppe via Digitalmars-d-learn Sun, 20 Sep 2015 11:25:57 -0700
Very simple: destroy(s) (or s.destroy but i prefer destroy(s))
will set the reference it is passed to null because you aren't
supposed to use it anymore.
- Question about Object.destroy Lambert Duijst via Digitalmars-d-learn
- Re: Question about Object.dest... ponce via Digitalmars-d-learn
- Re: Question about Object.dest... Adam D. Ruppe via Digitalmars-d-learn
- Re: Question about Object.... Lambert Duijst via Digitalmars-d-learn
- Re: Question about Obj... Adam D. Ruppe via Digitalmars-d-learn
- Re: Question about... Lambert Duijst via Digitalmars-d-learn
- Re: Question ... Adam D. Ruppe via Digitalmars-d-learn
- Re: Quest... Lambert Duijst via Digitalmars-d-learn
- Re: Question about Obj... anonymous via Digitalmars-d-learn
- Re: Question about... Adam D. Ruppe via Digitalmars-d-learn
- Re: Question ... Lambert Duijst via Digitalmars-d-learn