FAQ
Hi golang-nuts,

Does the Go garbage collector have any trouble with circular references? For
example, if a struct has a function field containing a closure that refers back
to that struct, will the struct be garbage collected if it's not otherwise
referenced?

I imagine the answer is "duh, of course it will be collected", but I want to
check to be sure. Both for the current version of Go and any planned future GC
work.

Thank you,
Aaron

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 6 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMar 31, '15 at 1:50a
activeMar 31, '15 at 2:45a
posts6
users4
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase