Ian Lance Taylor <i...@google.com> writes:

> This patch to the Go frontend and libgo implements method values in the
> reflect package.  Working with method values and reflect now works
> correctly, at least on x86.

Can you give me a test case?  I can try it on a few other architectures
tomorrow.

Cheers,
mwh

> This changes the type signature for type methods in the reflect
> package to match the gc compiler.  That in turn required changing the
> reflect package to mark method values with a new flag, as previously
> they were detected by the type signature.  The MakeFunc support needed
> to create a function that takes a value and passes a pointer to the
> method, since all methods take pointers.  It also needed to create a
> function that holds a receiver value.  And the recover code needed to
> handle these new cases.  Bootstrapped and ran Go testsuite on
> x86_64-unknown-linux-gnu.  Committed to mainline and 4.8 branch.
>
> Ian

Reply via email to