[go-nuts] go: Passing a member function as an argument compile error

2019-03-28 Thread Greg Bostrom
I just posted this on on openstack. Maybe someone here knows the answer? https://stackoverflow.com/questions/55410250/go-passing-a-member-function-as-an-argument-compile-error I would expect this to compile after watching this talk by Rob Pike https://www.youtube.com/watch?v=HxaD_trXwRE&t=1830s

Re: [go-nuts] go: Passing a member function as an argument compile error

2019-03-28 Thread Greg Bostrom
No, I intended to call New(foo) -- 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.g

Re: [go-nuts] go: Passing a member function as an argument compile error

2019-03-28 Thread Greg Bostrom
Thanks! That compiles. On Thursday, March 28, 2019 at 10:14:28 PM UTC-7, Ian Lance Taylor wrote: > > On Thu, Mar 28, 2019 at 10:02 PM Greg Bostrom > wrote: > > > > No, I intended to call New(foo) > > Well, in the program you showed us, foo is not defined, and that