Re: Consensus on getter conventions?



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]