Are __gshared globals gc scanned?
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Jun 14 06:56:24 PDT 2016
On Tuesday, 14 June 2016 at 13:53:10 UTC, ketmar wrote:
> cat $subj | sed -r 's/^Are (.+) (gc.+)\?$/\1 are \2./'
lol nice answer
so yeah they are scanned for pointers just like anything else
(meaning if they contain no pointers they are not scanned!) but
remember globals never go out of scope so things referenced in
them will not be collected until end of program run (if even then)
More information about the Digitalmars-d-learn
mailing list