[MPlayer-dev-eng] int vs. bool

Ingo Brückl ib at wupperonline.de
Sat Dec 1 12:27:13 CET 2012


Reimar Döffinger wrote on Sat, 1 Dec 2012 08:10:56 +0100:

> On 1 Dec 2012, at 00:15, Ingo Brückl <ib at wupperonline.de> wrote:
>> Reimar Döffinger wrote on Fri, 30 Nov 2012 19:42:31 +0100:
>>
>> I think the code will become more self-explanatory than directly using 0
>> and 1 with int variables.

> Why? Is this maybe something that can be solved by better variable names?

No, it's just because something like

  stop = true;

or

  guiInfo.PlaylistNext = false;

is a lot easier to understand than

  stop = 1;

  guiInfo.PlaylistNext = 0;

but if you don't like it I will not insist.

Ingo


More information about the MPlayer-dev-eng mailing list