On Saturday, May 4, 2019 at 2:50:00 AM UTC+2, Matt Harden wrote:
>
> On Fri, May 3, 2019, 17:28 <lgo...@gmail.com <javascript:>> wrote:
>
>> Does Go GC  destroy all global vars prior to the end of main() ? 
>>
>
> What do you mean by "destroy"? Go is not an object oriented language and 
> doesn't have the concept of a destructor. So no, it doesn't, but it also 
> doesn't need to.
>
>
Go does not have the concept of destructor, but the runtime has the concept 
of finalizer.

> [...]


Manlio Perillo 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to