Re: [go-nuts] A quick question about allocations when creating interface{} values

2016-12-06 Thread Francis
Thanks Ian, I should have noted that I was asking about a specific version of a specific Go compiler :) That is very interesting info about the functions, maps and channels. I'll have a bit more of a look around. On Tuesday, 6 December 2016 18:50:42 UTC+1, Ian Lance Taylor wrote: > > On Tue, De

Re: [go-nuts] A quick question about allocations when creating interface{} values

2016-12-06 Thread Ian Lance Taylor
On Tue, Dec 6, 2016 at 8:08 AM, Francis wrote: > Today I was exploring some unexpected allocations that came from creating > empty interface{} values wrapping a string and an int. I spent some time > trying to clarify my understanding so I wouldn't be surprised in the future. > > I have consulted

[go-nuts] A quick question about allocations when creating interface{} values

2016-12-06 Thread Francis
Today I was exploring some unexpected allocations that came from creating empty interface{} values wrapping a string and an int. I spent some time trying to clarify my understanding so I wouldn't be surprised in the future. I have consulted this excellent page http://research.swtch.com/interfac