[go-nuts] Re: Problems with lack of mentioning of interfaces implemented by a concrete type

2016-10-16 Thread Ali Demir
Eric, imagine the following scenario: You write a Java class that implements 2 different thirdparty interfaces that are very similar (Thus single impl). One of those interfaces resides in a jar that puts licensing limitations to your code/product. That becomes a problem. Go gives you the option

Re: [go-nuts] Re: Alignment and Padding / Packing of structs

2016-09-19 Thread Ali Demir
Yes, so what you are describing to me needs to be told to the C compiler users in a formal way so that they make sure their alignment is the same as Go. Thanks. On Mon, Sep 19, 2016 at 2:27 PM, Ian Lance Taylor wrote: > On Mon, Sep 19, 2016 at 2:08 PM, Ali Demir wrote: > > Packing

Re: [go-nuts] Re: Alignment and Padding / Packing of structs

2016-09-19 Thread Ali Demir
AM, Ian Lance Taylor wrote: > On Mon, Sep 19, 2016 at 8:50 AM, Ali Demir wrote: > > Header file won't have padding / alignment info. That would be a compiler > > setting on the C side that is using the header. So the programmer needs > to > > setup C compiler in a wa

Re: [go-nuts] Re: Alignment and Padding / Packing of structs

2016-09-19 Thread Ali Demir
Header file won't have padding / alignment info. That would be a compiler setting on the C side that is using the header. So the programmer needs to setup C compiler in a way that is compatible with the go compiler. How would he know how to set it up? Do we just assume defaults are the same between