Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!shebanow From: shebanow@Apple.COM (Andrew Shebanow) Newsgroups: comp.sys.mac.programmer Subject: Re: System 7.0 question Keywords: System 7.0, MacApp Message-ID: <32826@apple.Apple.COM> Date: 2 Jul 89 02:08:31 GMT References: <964@cnetlu.UUCP> <119@dbase.UUCP> <2402@internal.Apple.COM> <87@runxtsa.runx.oz> <32754@apple.Apple.COM> <2340@pur-phy> Organization: Apple Computer Inc, Cupertino, CA Lines: 36 I won't post a full description of the extensions here, but here is a quick summary of the ones concerning Object Pascal compatibility: * Classes derived from the builtin class 'PascalObject' are handle based, and use Object Pascal's method dispatching scheme. Multiple inheritance is not allowed in PascalObject classes. * The pascal keyword from MPW C works inside of (or outside of) class definitions * You can say inherited::Method() to get at your superclass's method. This only works for single inheritance classes. Here is a simple Object Pascal compatible class definition: class TMyView : public TView { public: virtual pascal Draw(); }; We also added extensions to support SANE, direct function calls, and other standard MPW C features. By the way, there is a MPW C++ sample program (CPlusTESample) I wrote that is available from DTS (via the Sample Code disks), and the source code should be available from the info-mac archives. Kind of a bummer that the compiler itself isn't available, but what can I say? Andrew Shebanow MacDTS Andrew Shebanow, Amway Representative Developer Technical Support, Apple Computer, Inc. ------------------------------------------------------------------------------ INTERNET: shebanow@apple.com UUCP: {decwrl, hoptoad, nsc, sun, amdahl}!apple!shebanow