Subject: Re: syntax error?
From: [email-masked] (Edmund Bacon)

29 Oct 1996 14:10:14 -0800
Sender: [email-masked]
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Original-To: [email-masked]
In-Reply-To: <[email-masked]>
X-Mailer: Forte Agent .99f/32.299
Original-Sender: [email-masked]

On Mon, 28 Oct 1996 17:30:41 -0800, you wrote:

>
>Here's the file:
>
>misc.h
>--------------------------------
>#ifndef misc_h
>#define misc_h
>
>const int false =3D 0;
>const int true =3D 1;
>
>#endif
>--------------------------------
>
>Here's the error message:
>
>$ in file included from buffer.h:24,
>$		   from buffer.cpp:25
>$ misc.h:18 syntax error before 'false'
>$ misc.h:19 syntax error before 'true'
>
>
>Can someone explain this error message or where the
>syntax error is?

David:

Under g++ 'false' and 'true' are constants of type=20
'bool' (also under Borland C++ 5.0).  The follwing program will
compile quite nicely with g++ with no complaints, however gcc will
complain about a syntax error before var.

--------------------------------------------
int main() {
	bool var =3D false;

	return 0;
}
--------------------------------------------

Zathros is used to being beast of burden to other peoples needs. Very sad=
 life.
Probably have very sad death ... But, at least there is symmetry.
-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".