Re: What is the best way to default construct an object.
- From: Havoc Pennington <hp redhat com>
- To: Jeff Franks <jcf tpg com au>
- Cc: gtk-devel-list gnome org
- Subject: Re: What is the best way to default construct an object.
- Date: 01 Nov 2001 23:33:17 -0500
Jeff Franks <jcf tpg com au> writes:
> g_object_new(GType, 0);
You're supposed to use this one. (I'm not sure "0" works for a pointer
in if there's no pointer type in the prototype though - what if
sizeof(int) != sizeof(void*)? I'm not enough of a language lawyer to
actually know the answer to that though. ;-)
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]