On Fri, Dec 8, 2017 at 9:24 AM,  <asaav...@gmail.com> wrote:
>
> I am able to pass a []*C.SQL_ERROR_TYPE to C, allocate memory for
> SQL_ERROR_TYPE on the "C" side, populate the structure and access it on the
> Go side.  It works.  I tested Mac (High Sierra) and Linux 7, 64 bit.  Is
> this legitimate?  Or is it just happenstance that it is working?

I don't see any problem with this.

Presumably you'll want to have some way to free the C memory
later--the Go garbage collector won't do it for you.

Ian

-- 
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