Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!wuarchive!udel!ee.udel.edu From: new@ee.udel.edu (Darren New) Newsgroups: comp.sys.amiga Subject: Re: Objective C is a Kludge ( was Re: An Intuition.device? ) Message-ID: <30465@nigel.ee.udel.edu> Date: 14 Sep 90 16:09:10 GMT References: <385@public.BTR.COM> <30261@nigel.ee.udel.edu> <389@public.BTR.COM> Sender: usenet@ee.udel.edu Organization: University of Delaware Lines: 16 Nntp-Posting-Host: estelle.ee.udel.edu In article <389@public.BTR.COM> eeh@public.BTR.COM (Eduardo E. Horvath eeh@btr.com) writes: >>The dynamic function calls should not be particularly slow either, > Agreed, but Objecctive-C doesn't use function calls to invoke >methods. It sends messages. And the messages are looked up via a hash table and are turned into a call on a function. Of course Objective-C uses function calls to invoke methods: it compiles into C, and C only has functions. Just like C++ turns a message (i.e., virtual function call) into a function call through an indirect pointer. The only slow-down in Obj-C is running up the inheritance heirarchy, which I understand has been optimized very well in the later versions. --Darren -- --- Darren New --- Grad Student --- CIS --- Univ. of Delaware --- ----- Network Protocols, Graphics, Programming Languages, Formal Description Techniques (esp. Estelle), Coffee -----