On Sat, May 6, 2017 at 3:39 AM, <mhhc...@gmail.com> wrote: > > Question about the receiver of a func. > > It can be defined as star/no star, and consumed as star/nostar. > > The understanding i have so far is, > it let the developer define the memory model he d like to use. > > It leads to cases such as > - define start/nostar on a type > - consume a stared type as a value > - consume a value type as a pointer
You are not permitted to define a method on a named type defines as a pointer type, so I don't understand your cases. Can you describe them using actual Go code rather than words? 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.