On Wednesday, November 23, 2016 at 11:28:13 PM UTC+8, T L wrote:
>
>
>
> 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> 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?
>

Here, for "Predeclared functions", I mean formally declared function, not 
the variable ones.
 

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