On Wednesday, November 23, 2016 at 11:18:02 PM UTC+8, Jan Mercl wrote: > > On Wed, Nov 23, 2016 at 3:30 PM T L <tapi...@gmail.com <javascript:>> > wrote: > > > Then? > > Then there is nothing to compare. If a function is inlined then you cannot > have a function pointer to it (like in func foo() {}; f := foo). So fully > supporting comparing function pointers means disabling inlining of any > function used in the f := foo or similar construct. Forbidding comparing > functions to anything else than nil solves the problem. >
Predeclared functions, including inlined ones, can be viewed as constants, which have not addresses. We can compare variable to constant, right? > > -- > > -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.