Descriptionreflect: add PtrTo, add Value.Addr (old Addr is now UnsafeAddr)
This change makes it possible to take the address of a
struct field or slice element in order to call a method that
requires a pointer receiver.
Existing code that uses the Value.Addr method will have
to change (as gob does in this CL) to call UnsafeAddr instead.
Patch Set 1 #Patch Set 2 : diff -r 262b13e908a6 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 262b13e908a6 https://go.googlecode.com/hg/ #
Total comments: 8
Patch Set 4 : diff -r 262b13e908a6 https://go.googlecode.com/hg/ #
Total comments: 1
Patch Set 5 : diff -r c2eab411f0ee https://go.googlecode.com/hg #
MessagesTotal messages: 12
|