Re: Symbolic boolean parameters



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]