Re: equals subclass
Daniel Bonniot <[email protected]>
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <[email protected]> |
Isaac Gouy wrote:
>Clarification: Seems that there isn't a way to write those equals
>methods within a class body, as that would be
> equals(Point p1, #Point p2)
>rather than
> equals(#Point p1, #Point p2)
>
>Have I got that right?
>
>
Yes, if you declare an implementation of a method foo inside a class C,
it is equivalent to:
foo(C this, ...) { ... }
Not sure if this is a problem in practice. # implementations should be
exceptional, I think.
Does somebody has an idea what syntax could allow to # dispatch on this?
Daniel
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn