From -1487818597341283273
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,fdf5ec91b4c47347
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2003-01-28 14:17:52 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!mutlu.news.demon.net!demon!mail2news.demon.co.uk!devnull
From: john@nospam.demon.co.uk (John G Harris)
Newsgroups: comp.std.c++
Subject: Re: Some features to be added to class-based OO languages
Date: Tue, 28 Jan 2003 22:17:51 +0000 (UTC)
Organization: None
Lines: 30
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <$LrUE6OgquN+EwOI@jgharris.demon.co.uk>
References: <59143289.0301271214.4aaeeb32@posting.google.com>
Mime-Version: 1.0
Content-Type: text/plain;charset=us-ascii
X-Trace: mail2news.demon.co.uk 1043792271 12326 10.0.0.1 (28 Jan 2003 22:17:51 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Tue, 28 Jan 2003 22:17:51 +0000 (UTC)
X-Received: from mulga.cs.mu.oz.au ([128.250.1.22])
	by news.demon.co.uk with esmtp (Exim 4.05)
	id 18de3B-0003Cf-00
	for mail2news@news.news.demon.net; Tue, 28 Jan 2003 22:17:50 +0000
X-Received: by mulga.cs.mu.OZ.AU
	id JAA13274; Wed, 29 Jan 2003 09:17:45 +1100 (EST)
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Path: comp-std-cpp-robomod!not-for-mail
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Delivered-To: std-c++@ncar.ucar.edu
X-Reply-To: jgharris@ic4life.net
X-Newsgroups: comp.std.c++
X-User-Agent: Turnpike/6.02-S (<o9ONJ$3OvL2vtRAxN+Z8z6nNH9>)
X-Spam-Status: No, hits=-7.4 required=5.0
	tests=INVALID_MSGID,NOSPAM_INC,REFERENCES,SIGNATURE_SHORT_DENSE,
	      SPAM_PHRASE_00_01,USER_AGENT
	version=2.41
Xref: archiver1.google.com comp.std.c++:17602

In article <59143289.0301271214.4aaeeb32@posting.google.com>, O.V.
<o.v@k.ro> writes
  <snip>
>2.1. Seamless interface conversions
  <snip>
>an object
>should be possible to use as an interface if it has all the methods of
>that interface.
  <snip>

That's a very misleading assumption. Remember the BS example : do you
expect
  void draw();
to make a picture, fire a six-gun, hand out a poker card, get money out
of a bank, or what?

Inheritance provides a unique and unbreakable link from an object's
semantics to an interface's semantics.

  John
-- 
John Harris
  mailto:john@jgharris.demon.co.uk

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



