Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2000:
[Freeciv-Dev] Re: Suggestion: introduce 'bool' type
Home

[Freeciv-Dev] Re: Suggestion: introduce 'bool' type

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Suggestion: introduce 'bool' type
From: Falk Hueffner <falk.hueffner@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: 08 Jun 2000 15:53:15 +0200

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



[Prev in Thread] Current Thread [Next in Thread]