On Fri, Jul 1, 2016 at 12:51 PM, <charras...@gmail.com> wrote: > > Perhaps modify Golang's 2.0 calling convention, that EVERY function must get > upon compilation one extra invisible-to programmer argument that is pointer > that > when said function is generic, points to sizeof(T) storage place . > If you're calling to non-generic function it's just NULL, and it seems like > a waste? but does it slow it down everything so much??
A single function can have multiple arguments with different generic types. If you need an extra parameter, I think you need to pass it normally, not using some special mechanism. Also you need to figure out how to make this work for methods when a value of the type is stored in an interface. 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.