Re: ObjC and `glib.h'
- From: Elliot Lee <sopwith redhat com>
- To: gtk-devel-list redhat com, gnome-list gnome org
- Subject: Re: ObjC and `glib.h'
- Date: Fri, 2 Oct 1998 09:40:09 -0400 (EDT)
On 1 Oct 1998, Raja R Harinath wrote:
> The new `GHook' struct has a member named `id', which seems to be an
> Objective-C keyword (Elliot?). I renamed it to `hook_id'. Here's a
> patch that fixes glib.h and ghook.c.
Yes, 'id' is a reserved word. When naming functions/parameters/variables,
people might want to keep in mind the reserved words of ObjC and C++, both
of which can include C headers directly (instead of requiring wrappers
like, say, scheme).
-- Elliot
"In film you will find four basic story lines. Man versus man, man
versus nature, nature versus nature, and dog versus vampire."
- Steven Spielberg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]