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