home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!news.cs.indiana.edu!umn.edu!csus.edu!netcom.com!objsys
- From: objsys@netcom.com (Bob Hathaway)
- Newsgroups: comp.object
- Subject: Re: O.M(...) vs M(...), and is the Real World O-O?
- Message-ID: <b2kn_3q.objsys@netcom.com>
- Date: 2 Sep 92 20:29:22 GMT
- References: <KERS.92Aug26181137@cdollin.hpl.hp.com> <#6jn_y+.objsys@netcom.com> <KERS.92Sep2121520@cdollin.hpl.hp.com>
- Organization: Object Systems
- Lines: 46
-
-
- [Thanks for the wrap-up Chris. I'll try to answer a few pointed questions
- but this isn't an attempt to start over; we need to move on to the new.]
-
- In article <KERS.92Sep2121520@cdollin.hpl.hp.com> kers@hplb.hpl.hp.com (Chris Dollin) writes:
- >Bob suggests that he's going to produce a book explaining his views more
- >fully.
- >
- >I look forward to reading it. Have you a publisher?
-
- No, I was just kidding. I might write one eventually though.
-
- >-- On modes of discourse ----------------------------------------------
- >...
- I agree. My excuse: There are not enough hours in the day for me and when
- plenty of them start getting consumed I start getting irritable (but thanks
- for bearing with me).
-
- >| You seem to have latched on to some trivial static efficiency tricks and
- >| took them as the general case.
- > ... [Why me?] ...
-
- C++ and other statically (strongly) typed object-oriented languages do
- only switch on the first parameter; all other argument types must be
- contra-variant with respect to subtyping. C++ even forces argument
- types (and currently return types) to be the same [for virtual functions].
- This is close to what you said: "only the first argument type is used and
- the rest are ignored". This is also a trivial static efficiency trick.
- This is what I was referring to above, the other case of a statically
- typeless language (Smalltalk) also only switches on the first argument type
- but includes keywords in the matching. This is because Smalltalk is a
- prototype language and doesn't provide types for argument matching (and
- only keywords, it should be both); a weakness of Smalltalk and clearly not
- of OO or of the O M ... notation.
-
- >-- On finance ---------------------------------------------------------
- >
- >| But don't worry, my consulting fee is only $500 an hour and I'll just bill
- >| you;-)
- >
- >The billing (if not the cooing) will be mutual, I'm sure :-)
-
- That should work out equitably for both of us!-)
-
- bob
- objsys@netcom.com
-