🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

and, or, not

#3140
From: Cay S. Horstmann
Date: Tue, 30 Jan 1996 04:47
28 lines
1628 bytes
I just got a press release from Borland that says their upcoming 5.0
compiler will support keywords and, or, not, that are synonyms to &&,
|| and !. 

They say you can use those if your local keyboard makes it difficult
to write the traditional tokens. Hell, my local eyes make it difficult
to read them. Does that mean I can from now on just write
	if (0 <= x and x <= 1) . . .
and be in conformance with ANSI C++?

That is, are "and", "or", "not", now reserved words in ALL C++
programs, or do you actually have to reside in a foreign country and
first use some preprocessor (like that trigraph filter) to get them?

If the answer is "they are reserved words in the language", then I'll
add
	#define and &&
	#define or ||
	#define not !
into my personal setup file today, until my compiler understands them
natively. Hooray!

Cay
horstman@cs.sjsu.edu
---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <4ej3t4$7nb@jupiter.SJSU.EDU>
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back

Show Full Headers
Complete Article Headers
From: horstman@jupiter.SJSU.EDU (Cay S. Horstmann)
Message-ID: <4ej3t4$7nb@jupiter.SJSU.EDU>
X-Original-Date: Mon, 29 Jan 1996 18:24:45 GMT
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
Date: 30 Jan 96 04:47:31 GMT
Approved: fjh@cs.mu.oz.au
Newsgroups: comp.std.c++
Subject: and, or, not
Organization: San Jose State University - Math/CS Dept
X-Newsreader: Forte Free Agent 1.0.82
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBFAgUBMQ2jCuEDnX0m9pzZAQGaXQGAgOBjyu5FFPc1v0Atz3CwEOaNzMcVQbhY
 ewSq49OpGI5fVXD/21wV9Yrn4zrgCblC
 =u4Fx