On Fri, Jan 19, 2018 at 7:48 AM Volker Dobler <dr.volker.dob...@gmail.com> wrote:
> Point{1,2} is not a temporary variable but a literal > and these do have addresses. Just not automatically. Did you mean &Point{1, 2}? Otherwise Point{1, 2} is a non-addressable value like 42. Literals do not have addresses before assigned to an (addressable) variable. The &T{} construct OTOH is an address per-se, not a literal value (but the pointee is). -- -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.