On Thu, Aug 25, 2016 at 3:09 AM, T L <tapir....@gmail.com> wrote:
>
> On Thursday, August 25, 2016 at 5:41:32 AM UTC+8, xiio...@gmail.com wrote:
>>
>> It doesn't/wouldn't seem to be any technical issue implementing methods on
>> any depth of pointer type .. as demonstrated in the unsafe example linked
>> from a previous related discussion (ie
>> https://groups.google.com/forum/#!msg/golang-nuts/qf76N-uDcHA/DTCDNgaF_p4J )
>>
>> It's not allowed by the specification - and surely the (sanity) reason for
>> this is that if you have pointers to pointers in this context you're
>> probably doing something wrong/unnecessary.
>
>
> The spec never says **T values can't call methods of *T.

There is, of course, no reason for the spec to say that.

The spec defines method sets for types.  A type **T can never have any methods.

Ian

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