home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / programm / 19022 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.4 KB  |  37 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!well!comeau
  3. From: comeau@csanta.attmail.com (Greg Comeau)
  4. Subject: Re: A newbie C++ question
  5. Message-ID: <C17nx7.68J@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: <1993Jan16.182302.11764@sol.ctr.columbia.edu> <C15Lss.5IH@agora.rain.com>
  11. Date: Thu, 21 Jan 1993 15:48:43 GMT
  12. Lines: 23
  13.  
  14. In article <C15Lss.5IH@agora.rain.com> robart@agora.rain.com (Joe Bob) writes:
  15. >In article <1993Jan16.182302.11764@sol.ctr.columbia.edu> tanel@cathy (Tanel Kuusk) writes:
  16. >>
  17. >>   struct IntuitionBase *IntuitionBase;
  18. >>
  19. >>At OpenLibrary g++ assumes IntuitionBase to be a type, but it's 
  20. >>really a variable!
  21. >
  22. >
  23. >  Actually it's both.
  24.  
  25. That is correct but misses the other correct point (ah, just love
  26. how English is ambiguous!): it is erroneous that after that declaration
  27. that an un-elaborated uttering of IntuitionBase is the type.
  28. To get the type after that declaration you must elaborate it so long
  29. as they are both in scope (ya gotta say struct IntuitionBase for the type).
  30.  
  31. - Greg
  32. -- 
  33.          Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418
  34.                 Producers of Comeau C++ 3.0/3.0.1 With Templates
  35.           Here:attmail.com!csanta!comeau / BIX:comeau / CIS:72331,3421
  36.         Voice:718-945-0009 / Fax:718-441-2310 / Prodigy: tshp50a
  37.