Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
June 14, 2016 Are __gshared globals gc scanned? | ||||
---|---|---|---|---|
| ||||
Title says it all... |
June 14, 2016 Re: Are __gshared globals gc scanned? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tofu Ninja | cat $subj | sed -r 's/^Are (.+) (gc.+)\?$/\1 are \2./' |
June 14, 2016 Re: Are __gshared globals gc scanned? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ketmar | 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 Re: Are __gshared globals gc scanned? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ketmar | 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 Re: Are __gshared globals gc scanned? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tofu Ninja | 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. |
Copyright © 1999-2021 by the D Language Foundation