Xref: utzoo comp.lang.c++:11900 comp.object:2618 comp.lang.objective-c:180 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!brunix!sdm From: sdm@cs.brown.edu (Scott Meyers) Newsgroups: comp.lang.c++,comp.object,comp.lang.objective-c Subject: Re: Static typing and OOP efficiency Message-ID: <66645@brunix.UUCP> Date: 28 Feb 91 10:16:05 GMT References: <1991Feb16.121825.15353@gpu.utcs.utoronto.ca> <27BFDF44.3EA6@tct.uucp> <27C523A2.2155@tct.uucp> Sender: news@brunix.UUCP Reply-To: sdm@cs.brown.edu (Scott Meyers) Organization: Brown University Department of Computer Science Lines: 15 In article pcg@cs.aber.ac.uk (Piercarlo Grandi) writes: | First, the speed on non dynamically overloaded messages is exactly the | same in C++ and Objective C, and as you note later, this is the | prevalent case. Do either of you have a reference for this (presumably empirical) observation? Frankly, I'm skeptical. Based purely on a seat-of-the-pants feeling, my guess would be that the dynamic type of a pointer/reference in C++ frequently differs from its static type, and that most function calls are to virtual functions. Or did I misunderstand the claim? Scott ------------------------------------------------------------------------------- What do you say to a convicted felon in Providence? "Hello, Mr. Mayor."