Method Pointers
Rémi Forax
forax at univ-mlv.fr
Sun Feb 26 17:06:14 PST 2012
On 02/27/2012 01:53 AM, Gregg Wonderly wrote:
> It seems to me that it would be probable that anyone holding a this#method reference would at some point use it for a membership test/expression. I think that in the case of an InvocationHandler, in particular, that the method would be of interest and possibly used to key to other data. If there is no constant representation, it seems very problematic to me.
Foo#bar() is constant but with foo an instance of Foo, foo#bar () is not
constant.
I wonder if the best is not to do not allow the syntax instance#method_ref
and only to allow the syntax Class#method_ref which is constant.
>
> Gregg
>
> Sent from my iPhone
Rémi
More information about the lambda-dev
mailing list