On Sat, May 4, 2019 at 2:15 PM T L <tapir....@gmail.com> wrote: > But it is a pointer parameter, though it looks like an array.
Yes, a pointer to an incomplete type. The compiler thus does not know how to compute address of bars[x] as that translates to bars + x*sizeof(bar). -- 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.