On Jun 11, 2008, at 12:29 AM, Jim Puls wrote:

For that matter, it may be worth pointing out John's confusion between "sloppy" and "incorrect". He makes a decent point that returning a mutable object when the method definition specifies an immutable one is sloppy and, indeed, fraught with peril.


Do you feel the same way about passing a (char *) to a method that takes a (const char *)?

I think that it's perfectly reasonable to expect the receiver of the piece of data, or object, that you hand over to respect the basic restrictions of that type.

j o a r


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to