Re: [go-nuts] Re: package-level structs vs package-level vars

2019-08-05 Thread B Carr
On Monday, August 5, 2019 at 9:33:08 AM UTC-6, burak serdar wrote: > > On Mon, Aug 5, 2019 at 9:20 AM B Carr > > wrote: > > > > Oh. I'm talking about env variables which a goroutine sets by using > os.Setenv() which to me implies OS env variables. Are those env variables > accessible by all

Re: [go-nuts] Re: package-level structs vs package-level vars

2019-08-05 Thread burak serdar
On Mon, Aug 5, 2019 at 9:20 AM B Carr wrote: > > > > On Monday, August 5, 2019 at 8:52:41 AM UTC-6, burak serdar wrote: >> >> On Mon, Aug 5, 2019 at 8:47 AM B Carr wrote: >> > >> > Is it safe to say that environment variables (accessible to all >> > goroutines) also live in the data segment? >>

Re: [go-nuts] Re: package-level structs vs package-level vars

2019-08-05 Thread B Carr
On Monday, August 5, 2019 at 8:52:41 AM UTC-6, burak serdar wrote: > > On Mon, Aug 5, 2019 at 8:47 AM B Carr > > wrote: > > > > Is it safe to say that environment variables (accessible to all > goroutines) also live in the data segment? > > No. > > When you say "environment variables", do y

Re: [go-nuts] Re: package-level structs vs package-level vars

2019-08-05 Thread burak serdar
On Mon, Aug 5, 2019 at 8:47 AM B Carr wrote: > > Is it safe to say that environment variables (accessible to all goroutines) > also live in the data segment? No. When you say "environment variables", do you mean OS env variables, or the variables visible to a goroutine? If you're talking about

[go-nuts] Re: package-level structs vs package-level vars

2019-08-05 Thread B Carr
Is it safe to say that environment variables (accessible to all goroutines) also live in the data segment? -- 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