On Wednesday, November 23, 2016 at 11:47:19 PM UTC+8, Jan Mercl wrote: > > On Wed, Nov 23, 2016 at 4:28 PM T L <tapi...@gmail.com <javascript:>> > wrote: > > > Predeclared functions, including inlined ones, can be viewed as > constants, which have not addresses. > > We can compare variable to constant, right? > > Wrong. > > Function pointers, specific Go implementation details aside for now, are > real pointers which you can use in the program to call the function it > points to. So making them "constants, which have not addresses" is not an > option. >
But we can take addresses of formally declared functions and function literals. We can only take addresses of function variables. > > > -- > > -j > -- 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.