Thanks for the quick reply Jan. So I conclude that the assignment of *int to intp succeeds because *int is not a defined type and both *int and intp have the same underlying type *int.
Looking through the ref spec I found a couple of places that mention some defined types (esp., all numeric types and string). Is there an exhaustive list available of all predefined types that technically count as defined types? On 8. May 2020, 14:57 +0200, Jan Mercl <0xj...@gmail.com>, wrote: > On Fri, May 8, 2020 at 2:46 PM <christophberger....@gmail.com> wrote: > > > Or do I just fail to see the obvious... > > 'int' _is_ a defined type. It's predeclared in the universe scope. -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/5397d0bf-e015-43b5-8ea1-6af7478f6e65%40Spark.