Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #17784
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | markspace <-@.> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: multiple inheritance |
| Date | Mon, 13 Aug 2012 07:58:00 -0700 |
| Organization | A noiseless patient Spider |
| Lines | 33 |
| Message-ID | <k0b4lt$9a9$1@dont-email.me> (permalink) |
| References | <ad4daccd-4c15-4121-85e8-e8684c32b8a8@googlegroups.com> <3bdk189lqa3ktvsjel20hdee3gh6f5mj5j@4ax.com> <50286fa2$0$289$14726298@news.sunsite.dk> <lOidncuq9_m9QLXNnZ2dnUVZ8kCdnZ2d@giganews.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Mon, 13 Aug 2012 14:58:06 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="61282af8d6595e8d991edb5ac03d6e00"; logging-data="9545"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188rXIYBdnxdDy9wZWZM9ZDZhs+izn4I8A=" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 |
| In-Reply-To | <lOidncuq9_m9QLXNnZ2dnUVZ8kCdnZ2d@giganews.com> |
| Cancel-Lock | sha1:IrklnPpYB3l/kMlD1nJDmemP1lo= |
| Xref | csiph.com comp.lang.java.programmer:17784 |
Show key headers only | View raw
On 8/13/2012 3:55 AM, Leif Roar Moldskred wrote:
> Arne Vajhøj <arne@vajhoej.dk> wrote:
>> On 8/2/2012 4:10 AM, Roedy Green wrote:
>>>
>>> 1. It has interfaces which gives much of the ability at lighter
>>> weight..
>>
>> Only for a very limited type of types (those with no implementation
>> at all).
>
> At times, I've wished that Java had automatic delegation (composition)
"Automatic delegation" is what I want. I've even invented my own little
syntax for it:
public SomeClass extends Fubar implements List(myList), OtherThing {
private AbstractList myList = new ArrayList();
...
}
where the parenthesis in the interface list is a forward declaration to
a field that will be the delegate for that particular interface. It
really shouldn't be that hard to do, just a few synthetic methods.
I really rather upset that we aren't getting something like this with
Java 8. I don't see any reason not to fix this right now, honestly.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
multiple inheritance bob smith <bob@coolfone.comze.com> - 2012-08-01 19:28 -0700
Re: multiple inheritance markspace <-@.> - 2012-08-01 20:07 -0700
Re: multiple inheritance Gene Wirchenko <genew@ocis.net> - 2012-08-01 21:07 -0700
Re: multiple inheritance Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-08-01 23:12 -0400
Re: multiple inheritance Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-08-01 23:41 -0400
Re: multiple inheritance Lew <lewbloch@gmail.com> - 2012-08-02 01:05 -0700
Re: multiple inheritance Arne Vajhøj <arne@vajhoej.dk> - 2012-08-12 23:15 -0400
Re: multiple inheritance Roedy Green <see_website@mindprod.com.invalid> - 2012-08-02 01:10 -0700
Re: multiple inheritance Arne Vajhøj <arne@vajhoej.dk> - 2012-08-12 23:08 -0400
Re: multiple inheritance Lew <noone@lewscanon.com> - 2012-08-12 20:19 -0700
Re: multiple inheritance Arne Vajhøj <arne@vajhoej.dk> - 2012-08-17 22:33 -0400
Re: multiple inheritance Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-08-13 05:55 -0500
Re: multiple inheritance markspace <-@.> - 2012-08-13 07:58 -0700
Re: multiple inheritance Arne Vajhøj <arne@vajhoej.dk> - 2012-08-17 22:38 -0400
Re: multiple inheritance Jan Burse <janburse@fastmail.fm> - 2012-08-02 10:12 +0200
csiph-web