bool and gcc

Mumit Khan
Mon Aug 10 16:31:00 GMT 1998

On Mon, 10 Aug 1998, Inquisitor Nikodemus wrote:

> Does gcc (egcs exactly) support boolean (bool) type?

Of course, and has for years. Why do you ask? (it's as simple as writing 
a trivial program to check). 

> What's that "new ANSI 'for' scoping" ?

Not that "new" anymore -- it's been around for years. In the following 
piece of code, the scope of "i" is the for loop, and i is not visible 

  for (int i = 0; i < some_value; ++i)
      // ...
  // i is now out of scope, sorry.

G++ provides an "backward compatibility" flag, -fno-for-scope, for code 
written years ago and hasn't been fixed yet.

As for the answers to the rest of your post, please get some books on C 
and/or C++ (and/or visit comp.lang.{c,c++} where this discussion would be 
more relevant). There are FAQ's for those groups as well which are very 
useful for beginners (and even though veterans don't like to admit it, 
they peek at those every so often as well!).


For help on using this list (especially unsubscribing), send a message to
"" with one line of text: "help".

More information about the Cygwin mailing list