home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / amiga / programm / 13289 < prev    next >
Encoding:
Text File  |  1992-09-11  |  1.2 KB  |  40 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!sun-barr!ames!pacbell.com!well!comeau
  3. From: comeau@csanta.attmail.com (Greg Comeau)
  4. Subject: Re: GCC vs c++ question
  5. Message-ID: <BuG4zB.G6p@well.sf.ca.us>
  6. Originator: comeau@well.sf.ca.us
  7. Sender: news@well.sf.ca.us
  8. Reply-To: comeau@csanta.attmail.com (Greg Comeau)
  9. Organization: Comeau Computing
  10. References: <1992Sep4.151221.12097@sagpd1>
  11. Date: Sat, 12 Sep 1992 03:42:47 GMT
  12. Lines: 26
  13.  
  14. In article <1992Sep4.151221.12097@sagpd1> monty@sagpd1.UUCP (Monty Saine) writes:
  15. |    Here is a program fragment:
  16. |    int min =1;        // global min
  17. |    int main(void)
  18. |    {
  19. |    int min = 5;        // internal min
  20. |    cout << "min 1 is: "<<min--<<"\n";
  21. |        {
  22. |        int min = 9;        // yet another min
  23. |        cout << "min 2 is: "<< ++min<<"\n";
  24. |        cout << min 3 is: "<< --::min<<"\n";
  25. |        }
  26. |    return 0;
  27. |    }
  28. |
  29. |    The question is, is the C++ syntax for min 3,  --::min or ::--min.
  30.  
  31. --::min....  without question.  ::--min is something else (an error is
  32. specific).
  33.  
  34. - Greg
  35. -- 
  36.          Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418
  37.                    Producers of Comeau C++ 3.0 With Templates
  38.           Here:attmail.com!csanta!comeau / BIX:comeau / CIS:72331,3421
  39.         Voice:718-945-0009 / Fax:718-441-2310 / Prodigy: tshp50a
  40.