Re: another NULL/reference hole in the API
- From: Murray Cumming <murrayc murrayc com>
- To: Daniel Elstner <daniel kitta googlemail com>
- Cc: gtkmm-list gnome org, paul linuxaudiosystems com
- Subject: Re: another NULL/reference hole in the API
- Date: Tue, 14 Aug 2007 20:55:42 +0200
On Tue, 2007-08-14 at 20:12 +0200, Daniel Elstner wrote:
> Am Dienstag, den 14.08.2007, 12:09 -0400 schrieb Paul Davis:
>
> > I've just discovered that all the spawn functions in glibmm make it
> > impossible to pass NULL to the underlying C layer to indicate "use same
> > working directory as parent". This is another instance of a general
> > pattern/hole that has been mentioned recently. I don't recall what
> > Murray's position on it is. Do we have a general policy?
>
> For strings we usually interpret the empty string as NULL, since in most
> cases you wouldn't ever want to pass an actual empty string. For the
> few functions where you do want that we introduce overloads.
Yes, and patches are welcome to add those methods.
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]