home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.mac.programmer:15475 comp.lang.c++:13647
- Path: sparky!uunet!spool.mu.edu!umn.edu!kksys.com!wd0gol!barker
- From: barker@wd0gol.WD0GOL.MN.ORG (Bob Barker)
- Newsgroups: comp.sys.mac.programmer,comp.lang.c++
- Subject: Possible bug in MPW C++ 3.2 with Handle-based classes
- Keywords: Macintosh, MPW C++
- Message-ID: <302@wd0gol.WD0GOL.MN.ORG>
- Date: 14 Sep 92 21:40:09 GMT
- Followup-To: poster
- Organization: Robert Barker & Associates, Eden Prairie, MN.
- Lines: 42
-
- We are having a problem using Handle-based classes with MPW C++.
- If we have a forward declaration for a handle-based class, then actually
- declare the class as handle-based later on, the compiler thinks it's a
- pointer-based class. In the example below, class B has this problem.
-
- Does anybody know of a fix or work-around for this problem? We're in urgent
- need of a solution! Any help or ideas would be very much appreciated!
-
- ---------------------------- Example -------------------------------------
- class B; // forward declaration of class B
-
- // declaration of class A
- class A: public HandleObject {
-
- public:
- B *ClassBPtr;
-
- .
- .
- .
- };
-
- //----- Later on -----
- class B: public A {
- .
- .
- .
- };
-
- -------------------------------------------------------
- System Software: System 7
- Hardware: Macintosh IIsi
- MPW C++ Version: 3.2
- MPW Development Evironment: 3.2.3
-
- Thanks!
-
- -Bob Barker
- ------------------------------------------------------------------------------
- Bob Barker ...!uunet!umn-cs!tcnet!wd0gol!barker
- Robert Barker & Associates barker@wd0gol.MN.ORG
- (612) 949-0140
-