x := 2
a := reflect.ValueOf(x) //no variable
b := reflect.ValueOf(&x) //no variable
c := reflect.ValueOf(&x).Elem() //yes variable

WHY c is addressable? but a and b not

-- 
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/CAErtTSUE91O4Aj0N6zrC-om%2BE73%3DY2-i4yoFvk1c%2BrK0ArpzqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to