On Tuesday, August 23, 2016 at 1:35:16 PM UTC+8, kortschak wrote:
>
> Ian has an answer for this here 
> https://groups.google.com/d/msg/golang-nuts/qf76N-uDcHA/DTCDNgaF_p4J


the two questions are not totally equivalent.
 

>
>
> On Mon, 2016-08-22 at 22:28 -0700, T L wrote: 
> > Looks this question can be stated as "why can't named pointer types 
> > have 
> > methods?" 
> > 
> > package main 
> > 
> > type PT *int 
> > func (pt PT) f() {} // error: invalid receiver type PT (PT is a 
> > pointer 
> > type) 
> > 
> > func main() {} 
>
>
>

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