Symbolic boolean parameters
- From: Eric Lemings <eric b lemings lmco com>
- To: gtk-devel-list gnome org
- Subject: Symbolic boolean parameters
- Date: Wed, 11 Oct 2000 10:48:40 -0600
In the questions below, pick the choice, a or b, that is easier to
understand.
1. a. g_string_free (TRUE);
b. g_string_free (G_STRING_FREE_SEGMENT);
2. a. g_main_new (FALSE);
b. g_main_new (G_MAIN_NOT_RUNNING);
3. a. g_array_new (TRUE, TRUE);
b. g_array_new (G_ARRAY_ZERO_TERMINATE, G_ARRAY_CLEAR_ELEMENTS);
If you picked `b' for all three answers, we're on the same wavelength.
I propose adding meaningful symbols where boolean parameters are used.
Any objections?
Eric.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]