Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!ucsd!ucbvax!husc6!endor!siegel From: siegel@endor.uucp (Rich Siegel) Newsgroups: comp.sys.mac.programmer Subject: Re: MPW C++ vs. THINK C 4.0 Message-ID: <3987@husc6.harvard.edu> Date: 23 Aug 90 02:22:41 GMT References: <2054@key.COM> <3947@husc6.harvard.edu> <2070@key.COM> <9896@goofy.Apple.COM> Sender: news@husc6.harvard.edu Reply-To: siegel@endor.UUCP (Rich Siegel) Organization: Symantec Language Products Group Lines: 19 > >As far as virtual overhead goes, C++ requires that the programmer make a >decision about virtual/non-virtual for each member function. The programmer >has to decide up front whether a user of the class would want to override a >function. In Object Pascal (don't know about THINK Pascal/C), this >optimization is made in the linker, based on how the class is used. If the >function isn't overridden then there is no virtual dispatching overhead. Just to fill in the gap - both THINK C and THINK Pascal will optimize monomorphic methods to avoid method dispatches. R. ~~~~~~~~~~~~~~~ Rich Siegel Staff Software Developer Symantec Corporation, Language Products Group