Hi, I have a question about "addressable."

The following code illustrates my question (see the comments):
https://go.dev/play/p/xpiPXuEqh0O?v=gotip



I also posted question in the Gopher Slack channel, 
<https://gophers.slack.com/archives/C88U9BFDZ/p1721013504086449> and @Axel 
Wagner provided a detailed explanation, suggesting that this might be a gap 
in the Go specification.
@Jason Phillips recommended that I ask this question in the GitHub issues 
and the golang-nuts mailing list.

I really appreciate everyone’s help mentioned, but I still don’t have a 
clear conclusion.

To simplify: my question is why the result of myfunReturnPointer() is 
addressable if we strictly follow the specification.

Thanks,
Xudong
Jason Phillips

-- 
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/cfec0c05-3df2-4784-b8a2-37d529ca6056n%40googlegroups.com.

Reply via email to