[fpc-pascal] Problem with Objective Pascal and delphi mode
Jonas Maebe
jonas.maebe at elis.ugent.be
Sun Jan 31 16:24:06 CET 2010
On 31 Jan 2010, at 15:44, Felipe Monteiro de Carvalho wrote:
> Do we really need the message identifier in all methods?
No, only for new ones. When you override methods, implement methods from protocols, or reintroduce methods via a category, you don't need it. Then the compiler knows the selector thanks to the previous declaration and can copy it from there.
> I mean, can't
> the compiler just guess the name by substituting _ with : ?
A compiler that guesses is a bad compiler. If there is one thing that makes code error-prone or hard to read, then it's language features where you have to know how the compiler "guesses".
Jonas
More information about the fpc-pascal
mailing list