• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C question for you old guys ;-)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C question for you old guys ;-)


  • Subject: Re: C question for you old guys ;-)
  • From: Andrew Pinski <email@hidden>
  • Date: Wed, 11 Jun 2003 23:18:20 -0400

On Wednesday, Jun 11, 2003, at 20:32 US/Eastern, Matthew Toia wrote:

#define and &&
#define or ||
#define not !

are actually C++ standard keywords now. (i.e. can be used without any
macros)

g++ doesn't seem to agree with you, though it makes _some_ sense.


Which version, 3.0 included them as keywords.

In fact it was added by this patch:
Thu Nov 17 15:30:50 1994 Mike Stump <email@hidden>

* gxx.gperf, hash.h, lex.c (init_lex, real_yylex), parse.y: Add new
ANSI keywords and, and_eq, bitand, bitor, explicit, namespace, not,
not_eq, or, or_eq, typename, using, xor, xor_eq to g++. Still need
to add support for explicit, namespace, typename, and using, support
for the rest is already in.

Thanks,
Andrew Pinski
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Keywords - was Re: C question for you old guys ;-)
      • From: Danny Swarzman <email@hidden>
    • Re: C question for you old guys ;-)
      • From: Oscar Morales Vivó <email@hidden>
References: 
 >Re: C question for you old guys ;-) (From: Matthew Toia <email@hidden>)

  • Prev by Date: Re: troubling article
  • Next by Date: Re: C question for you old guys ;-)
  • Previous by thread: Re: C question for you old guys ;-)
  • Next by thread: Re: C question for you old guys ;-)
  • Index(es):
    • Date
    • Thread