[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: object-model: Return by value, reference or pointer? (or something else?)

From: Steinar Bang <sb_at_dod.no>
Date: Fri, 15 Oct 2010 09:14:05 +0200

>>>>> Philipp Marek <philipp.marek_at_linbit.com>:

> It might be easier for callers if this did
> if (isNull)
> return "";
> so that the value could just be used in printf() and similar without
> explicit checking.

If that was ok to do, one might as well represent a NULL with an empty
string.
Received on 2010-10-15 09:15:00 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.