[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: Philipp Marek <philipp.marek_at_linbit.com>
Date: Thu, 14 Oct 2010 08:41:35 +0200

How about returning a pointer to an empty string (zero length) at some fixed
address (eg. allocated statically), which is good enough for most callers,
but provide a function or symbol that compares against that address?

This way you'd get an empty string back; if you care whether the property
really exists you do a call to noProperty() or something like that.

Regards,

Phil
Received on 2010-10-14 08:42:24 CEST

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