Re: returning value in a function argument
Re: returning value in a function argument
- Subject: Re: returning value in a function argument
- From: Scott Ellsworth <email@hidden>
- Date: Wed, 17 May 2006 20:36:04 -0700
On May 17, 2006, at 6:37 PM, Sherm Pendley wrote:
I don't know why so many folks are suggesting you return an array
instead. Return by reference is a perfectly cromulent pattern, and
it's been used for decades to work around C's insistence on a
single return value. Far from discouraging it, Apple is adopting it
all over the place with NSError objects.
Because he originally asked for two strings to be returned, without
being clear which two strings those would be.
I would likely have had it return the infostring, since the caller
already has the string passed in.
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden