[Freeciv-Dev] Re: Suggestion: introduce 'bool' type
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Thue Janus Kristensen <thue@xxxxxxx> writes:
> On Thu, 08 Jun 2000, Falk Hueffner wrote:
> > Hi,
> >
> > I think it would be a good idea to introduce a 'bool' type, with
> > constants 'true' and 'false'. This would make some code much more
> > readable IMHO.
> >
> > Note C++ already implements this, and the upcoming C standard will,
> > too.
> >
> > If nobody objects, I will write a configure test and add it to
> > shared.h.
> >
> > Falk
>
> It's already there:
>
> http://www.freeciv.org/lxr/source/common/shared.h#L35
>
> just not used in all the code.
Well, I can find TRUE and FALSE there, but no 'bool' type. I just find
it a lot more enlighting when I see something like
bool zoc(...)
rather than
int zoc(...).
Or is my version just too old?
Falk
|
|