Re: Symbolic boolean parameters
- From: Havoc Pennington <hp redhat com>
- To: Eric Lemings <eric b lemings lmco com>
- Cc: gtk-devel-list gnome org
- Subject: Re: Symbolic boolean parameters
- Date: 11 Oct 2000 21:12:23 -0400
Eric Lemings <eric b lemings lmco com> writes:
> Any objections?
>
- you can't break existing API
- if you switch to symbolic params you should do it as flags combined
with |, especially if there are two booleans, e.g.
g_array_new (GArrayFlags flags);
Also, while the enum versions read better they have a longer learning
curve for people typing in the original code, and take longer to type,
so there are some tradeoffs.
With those caveats sure this is worth considering for new API.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]