🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #1540

What!!! true and false not identifiers?

#1540
From: Andrew Fitzgibbon
Date: Wed, 02 Aug 1995 09:29
17 lines
896 bytes
I don't believe it!  true and false are keywords, at least according to
g++, which gets a parse error on this code.

       f() {
         int true = 0; // parse error
       }

Why?

A.

-- 
Andrew Fitzgibbon (Research Associate),                     andrewfg@ed.ac.uk
Artificial Intelligence, Edinburgh University.               +44 031 650 4504
<a href=http://www.dai.ed.ac.uk/staff/personal_pages/andrewfg> Home Page </a>
                         "Never say there is no way" -- me.
Technical Details
Message-ID: <fwv3ffkzm98.fsf@oculus.aifh.ed.ac.uk>
Path: arc1-ca.pugleaf.net!newsfeed.ed.ac.uk!ainews!news

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++
Path: arc1-ca.pugleaf.net!newsfeed.ed.ac.uk!ainews!news
From: andrewfg@oculus.aifh.ed.ac.uk (Andrew Fitzgibbon)
Subject: What!!! true and false not identifiers?
Message-ID: <fwv3ffkzm98.fsf@oculus.aifh.ed.ac.uk>
Sender: news@aisb.ed.ac.uk (Network News Administrator)
Organization: /usr/lib/news/organization
X-Newsreader: (ding) Gnus v0.75
Date: Wed, 2 Aug 1995 09:29:55 GMT