home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.object
- Path: sparky!uunet!munnari.oz.au!metro!graham
- From: graham@maths.su.oz.au (Graham Matthews)
- Subject: Re: O.M() versus M(O) notation
- Message-ID: <graham.714051874@galois>
- Sender: graham@maths.su.oz.au
- Nntp-Posting-Host: galois.maths.su.oz.au
- Organization: School of Mathematics and Statistics, University of Sydney
- References: <1992Aug5.162329.22871@ucunix.san.uc.edu> <PCG.92Aug12205741@aberdb.aber.ac.uk> <__5mtrq.objsys@netcom.com> <PCG.92Aug14170701@aberdb.aber.ac.uk> <1992Aug15.124149.28538@m.cs.uiuc.edu> <PCG.92Aug16184526@aberdb.aber.ac.uk> <1992Aug16.212818.29943@m.cs.uiuc.edu>
- Date: Mon, 17 Aug 1992 11:44:34 GMT
- Lines: 30
-
- (Ralph Johnson) writes:
- >First, I agree completely that it is a good idea to separate interface
- >from implementation and from specification. There are times when you
- >want to be able to reuse one of them without reusing the other, and
- >combining them in the way that all the popular object-oriented languages
- >do makes it harder to reuse just the piece you need. This results in
- >tricks like overriding an operation to make it generate an error
- >message, which Piercarlo complained about. Separating interface from
- >implementation seems to be the trend in the design of object-oriented
- >programming languages. There are several research languages that follow
- >this path, though the only language I know about that is expected to be
- >widely used and that separates interface from implementation is the
- >object-oriented Cobol proposal. I'd love to be told of languages that
- >separate specification from implementation that I don't know about.
- >
- >Note that languages like Smalltalk have only implementation; they don't
- >provide a separate interface or specification. Only Eiffel provides
- >any sort of specification (pre and post conditions and class invariants)
- >in the language.
-
- Could someone provide a concrete example of where seperating interface
- and implementation buys one a whole lot, or where you want to inherit
- part of an interface. I am not saying that it can't be done or isn't
- useful, I am merely interested in an illustrative example.
-
- graham
- --
- Graham Matthews And it's true we are immune
- Pure Math, Uni.Sydney, Oz When fact is fiction and T.V. is reality
- graham@maths.su.oz.au
-