home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!sun-barr!ames!pacbell.com!well!comeau
- From: comeau@csanta.attmail.com (Greg Comeau)
- Subject: Re: GCC vs c++ question
- Message-ID: <BuG4zB.G6p@well.sf.ca.us>
- Originator: comeau@well.sf.ca.us
- Sender: news@well.sf.ca.us
- Reply-To: comeau@csanta.attmail.com (Greg Comeau)
- Organization: Comeau Computing
- References: <1992Sep4.151221.12097@sagpd1>
- Date: Sat, 12 Sep 1992 03:42:47 GMT
- Lines: 26
-
- In article <1992Sep4.151221.12097@sagpd1> monty@sagpd1.UUCP (Monty Saine) writes:
- | Here is a program fragment:
- | int min =1; // global min
- | int main(void)
- | {
- | int min = 5; // internal min
- | cout << "min 1 is: "<<min--<<"\n";
- | {
- | int min = 9; // yet another min
- | cout << "min 2 is: "<< ++min<<"\n";
- | cout << min 3 is: "<< --::min<<"\n";
- | }
- | return 0;
- | }
- |
- | The question is, is the C++ syntax for min 3, --::min or ::--min.
-
- --::min.... without question. ::--min is something else (an error is
- specific).
-
- - Greg
- --
- Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418
- Producers of Comeau C++ 3.0 With Templates
- Here:attmail.com!csanta!comeau / BIX:comeau / CIS:72331,3421
- Voice:718-945-0009 / Fax:718-441-2310 / Prodigy: tshp50a
-