Article View: comp.lang.clos
Article #158Re: Beginner's question and method lookup
From: David C. Martin
Date: Thu, 20 Aug 1992 06:39
Date: Thu, 20 Aug 1992 06:39
22 lines
1543 bytes
1543 bytes
Jon L White writes:
David, if it were possible to do "complete determination
i.e. static binding for the executable" at compile time,
then there would be no need for "virtual" functions in
C++. Do you understand the fundamental problem posed by
having same-named methods on a class and and on a derived
(sub) class? the dispatch from a higher method cannot
determine at compile time whether or not a sub-called
method[*] is the one defined on the same statically
determinable class or one of those defined on a derived
(sub) class. I talked about this topic at the CLOS versus
C++ debate last week at the 1992 Lisp Users and Vendors
conference.
Yes, I do understand that you can't do *complete* determination, but I meant
that you didn't always need to do table lookups for cases in which you would
not use "virtual" functions in C++. I did not mean that you can always do
static determination for solutions in all know problem space. I should have
been more specific.
dcm
Technical Details
Message-ID:
<9208202039.AA29519@fascet.msi.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!fascet.msi.com!dcmartinReferences:
<9208201825.AA03077@kuwait.lucid>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!fascet.msi.com!dcmartin From: dcmartin@fascet.msi.com (David C. Martin) Newsgroups: comp.lang.clos Subject: Re: Beginner's question and method lookup Message-ID: <9208202039.AA29519@fascet.msi.com> Date: 20 Aug 92 06:39:30 GMT Article-I.D.: fascet.9208202039.AA29519 References: <9208201825.AA03077@kuwait.lucid> Sender: dcmartin@msi.com Organization: Molecular Simulations, Inc. Lines: 22