Re: Consensus on getter conventions?
- From: Owen Taylor <otaylor redhat com>
- To: gtk-devel-list gnome org
- Subject: Re: Consensus on getter conventions?
- Date: 25 Aug 2000 11:34:11 -0400
Owen Taylor <otaylor@redhat.com> writes:
> Dan Winship <danw@helixcode.com> writes:
>
> > +#ifdef G_CONST_LAZINESS
> > +# define gconst
> > +#else
> > +# define gconst const
> > +#endif
>
> Like Tim, I'd prefer GCONST, and also, the default has to
> be the other way.
Hmmm, on second thought, both gconst and GCONST are broken,
since people will expect:
void gtk_widget_set_name (GCONST char *name);
It needs to be something like GCONSTRETURN. (Difficulty of typing
doesn't matter much, since it will never appear in apps)
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]