Method Pointers
Rémi Forax
forax at univ-mlv.fr
Fri Mar 23 09:30:04 PDT 2012
On 03/23/2012 04:42 PM, Gregg Wonderly wrote:
> On 3/23/2012 1:15 AM, Ted Neward wrote:
>> I would have to agree with Brian, I think the right answer here is for the
>> developer smart enough to think to store a List of method pointers to know
>> (via Google search, if necessary) that method pointers don't provide
>> identity semantics and provide her own when she needs it....
> The compiler, could in fact, know that elements of that time can not be
> compared, and issue a warning to the developer saying that the two items can not
> be compared perhaps?
often the comparison is deeply hidden behind List.contains() or
List.remove().
>
> Gregg Wonderly
>
Rémi
More information about the lambda-dev
mailing list