www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Are __gshared globals gc scanned?

reply Tofu Ninja <joeyemmons yahoo.com> writes:
Title says it all...
Jun 14 2016
parent reply ketmar <ketmar ketmar.no-ip.org> writes:
cat $subj | sed -r 's/^Are (.+) (gc.+)\?$/\1 are \2./'
Jun 14 2016
next sibling parent Adam D. Ruppe <destructionator gmail.com> writes:
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)
Jun 14 2016
prev sibling parent reply Tofu Ninja <joeyemmons yahoo.com> writes:
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
Jun 14 2016
parent "H. S. Teoh via Digitalmars-d-learn" <digitalmars-d-learn puremagic.com> writes:
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.
Jun 14 2016