]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/reflect/value.go
[dev.typeparams] all: merge master (37f9a8f) into dev.typeparams
[gostls13.git] / src / reflect / value.go
index 4341fd3f90127a7f0ff8ce314c501a4182c5f4bc..7589966e222a8b2e45786dd2d338634b99f9678f 100644 (file)
@@ -1377,10 +1377,16 @@ func valueInterface(v Value, safe bool) interface{} {
        return packEface(v)
 }
 
-// InterfaceData returns the interface v's value as a uintptr pair.
+// InterfaceData returns a pair of unspecified uintptr values.
 // It panics if v's Kind is not Interface.
+//
+// In earlier versions of Go, this function returned the interface's
+// value as a uintptr pair. As of Go 1.4, the implementation of
+// interface values precludes any defined use of InterfaceData.
+//
+// Deprecated: The memory representation of interface values is not
+// compatible with InterfaceData.
 func (v Value) InterfaceData() [2]uintptr {
-       // TODO: deprecate this
        v.mustBe(Interface)
        // We treat this as a read operation, so we allow
        // it even for unexported data, because the caller