digitalmars.D.learn - Are __gshared globals gc scanned?
- Tofu Ninja (1/1) Jun 14 2016 Title says it all...
- ketmar (1/1) Jun 14 2016 cat $subj | sed -r 's/^Are (.+) (gc.+)\?$/\1 are \2./'
- Adam D. Ruppe (6/7) Jun 14 2016 lol nice answer
- Tofu Ninja (3/4) Jun 14 2016 Ah cool, thanks
- H. S. Teoh via Digitalmars-d-learn (7/12) Jun 14 2016 What, you mean you can't just read and execute arbitrarily complex
cat $subj | sed -r 's/^Are (.+) (gc.+)\?$/\1 are \2./'
Jun 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)
Jun 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
Jun 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: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.__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