Skip navigation.
 
mlRe: A question of style: Returning 'pairs'
FROM : Stephen J. Butler
DATE : Wed Jul 02 20:58:39 2008

On Wed, Jul 2, 2008 at 1:48 PM, James Montgomerie <<email_removed>> wrote:
> 2) Define a custom C struct (like NSRect, but with e.g. 'string' and
> 'offset' members) and return objects in it.  Just like any other returned
> objects, the caller would be expected to retain them individually if it
> needed to keep them around.


This is what I would do. Sort of compliments NSRange and the functions
that return it.

Related mailsAuthorDate
mlA question of style: Returning 'pairs' James Montgomerie Jul 2, 20:48
mlRE: A question of style: Returning 'pairs' Abernathy, Joshua Jul 2, 20:56
mlRe: A question of style: Returning 'pairs' Stephen J. Butler Jul 2, 20:58
mlRe: A question of style: Returning 'pairs' Jean-Daniel Dupas Jul 2, 21:14
mlRe: A question of style: Returning 'pairs' Andy Lee Jul 2, 21:22
mlRe: A question of style: Returning 'pairs' Andy Lee Jul 2, 21:30
mlRe: A question of style: Returning 'pairs' Joel Norvell Jul 2, 21:33
mlRe: A question of style: Returning 'pairs' Bob Smith Jul 2, 22:03
mlRe: A question of style: Returning 'pairs' Keith Duncan Jul 2, 22:19
mlRe: A question of style: Returning 'pairs' David Casseres Jul 4, 04:02