swarm-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [swarm-hackers] Accessor Mutator methods...


From: Nima Talebi
Subject: Re: [swarm-hackers] Accessor Mutator methods...
Date: Tue, 10 Nov 2009 13:44:36 +1100

Hi Bill,

Would you suggest yet another branch to try this out then?

And if that branch went well, what would we do - maintain both, or disband one?

Nima

On Tue, Nov 10, 2009 at 1:39 PM, Bill Northcott <address@hidden> wrote:
On 10/11/2009, at 1:27 PM, Nima Talebi wrote:
> Currently we have:
> - (id)setFoo:
> - (id)getFoo:
>
> Cocoa asks for...
> - (void)setFoo:
> - (id)foo;
>
> ...it's not a huge deal, but definitely something I'd personally prefer - but I have no idea on how many things it would potentially break - I'm guessing there's no hard coding that way, but that probing will not work - so probing is what would need to be rewritten? Is there more to it than that?

As I remember it, a lot of those return types were only inserted recently.  Older compilers allowed methods without a return type.  As the types were unnecessary, anything would do.   I think there just a search and replace to make all the missing ones (id).  Of course reversing it is not so simple because you have to think if the return type is meaningful and MIGHT be used.

Bill

_______________________________________________
swarm-hackers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/swarm-hackers




--
Nima Talebi
web: http://ai.autonomy.net.au/People/Nima
gpg: B51D 1F18 D8E2 B702 B027 23A4 E06B DAC1 BE70 ADC0

reply via email to

[Prev in Thread] Current Thread [Next in Thread]