Thread overview
Are __gshared globals gc scanned?
Jun 14, 2016
Tofu Ninja
Jun 14, 2016
ketmar
Jun 14, 2016
Adam D. Ruppe
Jun 14, 2016
Tofu Ninja
Jun 14, 2016
H. S. Teoh
June 14, 2016
Title says it all...
June 14, 2016
cat $subj | sed -r 's/^Are (.+) (gc.+)\?$/\1 are \2./'
June 14, 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)
June 14, 2016
On Tuesday, 14 June 2016 at 13:53:10 UTC, ketmar wrote:
> __gshared globals are gc scanned.

Ah cool, thanks
I had to login to my work computer just to read your answer lol
June 14, 2016
On Tue, Jun 14, 2016 at 02:04:15PM +0000, Tofu Ninja via Digitalmars-d-learn wrote:
> On Tuesday, 14 June 2016 at 13:53:10 UTC, ketmar wrote:
> > __gshared globals are gc scanned.
> 
> Ah cool, thanks
> I had to login to my work computer just to read your answer lol

What, you mean you can't just read and execute arbitrarily complex regexes in your head?!

;-)


T

-- 
Never wrestle a pig. You both get covered in mud, and the pig likes it.