delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/08/10/23:36:11

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: bool and gcc
10 Aug 1998 23:36:11 -0700 :
Message-ID: <Pine.SUN.3.93.980810164500.2778C-100000.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <3 DOT 0 DOT 1 DOT 32 DOT 19980810163711 DOT 0069a178 AT friko6 DOT onet DOT pl>
Mime-Version: 1.0
To: Inquisitor Nikodemus <inquisit AT friko6 DOT onet DOT pl>
Cc: gnu-win32 AT cygnus DOT com

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 
outside.

  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!).

Regards,
Mumit

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019