On Wed, Nov 23, 2016 at 3:30 PM T L <tapir....@gmail.com> 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.

-- 

-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.

Reply via email to