[Drawkit] DKGuide position mayhem
Alex Curylo
alex at alexcurylo.com
Sun Jun 22 21:25:19 PDT 2008
On 22-Jun-08, at 9:00 PM, Graham Cox wrote:
> This is good advice, but in fact the issue is more subtle than just
> a missing prototype, which of course you must always prevent. In
> this case I think James ran into the following issue, which also has
> bitten me a couple of times.
>
> The problem arises if you have two classes, each declaring a method
> with some identical name, but differing return types:
>
> - (float) position;
> - (int) position;
Ah, I didn't read closely enough. That particular issue happened to be
on my mind because I'm training some Windows programmers to take over
a Cocoa project right now, and being Windows programmers of course
they completely ignore any kind of warning and then pester me in
bafflement when it doesn't work, and assumed return types due to
lacking prototypes is one that came up this afternoon.
--
Alex Curylo -- alex at alexcurylo.com -- http://www.alexcurylo.com/
"When I met you, it was a little like meeting Jubal from _Stranger In A
Strange Land_. I *think* that's a compliment..." -- Dominique
More information about the Drawkit
mailing list