🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #241

Re: Multiple interfaces

#241
From: Chris Smith
Date: Fri, 21 Jun 2002 17:30
19 lines
2265 bytes
Coho (Richard Swain) wrote ...
> What is the answer?
> 

The answer is to pass the abstraction that represents the set of 
information that the method needs, and to declare the method to accept 
the set of information that it needs.  To complain about not being able 
to get back to the original interface is, essentially, complaining that 
you can't write a method declared to take one type parameter, and then 
have it access that data as a different type.  If the method needed to be 
able to treat the object as a MyClass, it should never have declared its 
parameter to be of type Intf1.

I honestly can't find a single reason that this is even a problem, aside 
from the fact that someone said that dropping any kind of information 
makes them feel "alienated".  Programming without ever dropping 
information is antithetical to abstraction, and it's not workable.

Chris Smith
Technical Details
Message-ID: <MPG.177d108baac3f38098a0e2@news.altopia.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news.maxwell.syr.edu!news.alt.net!usenet
References: <1024283082.192985@web.apex.net.au> <JScP8.111$Fv1.17660@newsread2.prod.itd.earthlink.net> <1024289793.45649@web.apex.net.au> <pan.2002.06.17.07.46.24.235390.777@databasix.com> <3D0F7E91.5010401@krang.f9.co.uk> <3d10edc6.1491361@news.virgin.net> <3D1101BE.40506@krang.f9.co.uk> <3d121553.1321895@news.virgin.net> <3D126A72.4123E49B@i.hate.spam> <pan.2002.06.21.07.16.04.89148.1938@databasix.com> <3D132DC5.2080202@krang.f9.co.uk> <pan.2002.06.21.10.08.49.163730.2532@databasix.com> <3D135D0D.3060804@krang.f9.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,113f3357bc588129
X-Google-Attributes: gid10d6db,public
X-Google-Thread: f74b3,113f3357bc588129
X-Google-Attributes: gidf74b3,public
X-Google-Thread: 10a146,113f3357bc588129
X-Google-Attributes: gid10a146,public
X-Google-ArrivalTime: 2002-06-21 10:30:26 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news.maxwell.syr.edu!news.alt.net!usenet
From: Chris Smith <cdsmith@twu.net>
Newsgroups: aus.computers.java,borland.public.jbuilder.java.language,comp.lang.java.programmer
Subject: Re: Multiple interfaces
Date: 21 Jun 2002 17:30:26 GMT
Organization: Altopia Corp. - Usenet Access - http://www.altopia.com
Lines: 19
Message-ID: <MPG.177d108baac3f38098a0e2@news.altopia.com>
References: <1024283082.192985@web.apex.net.au> <JScP8.111$Fv1.17660@newsread2.prod.itd.earthlink.net> <1024289793.45649@web.apex.net.au> <pan.2002.06.17.07.46.24.235390.777@databasix.com> <3D0F7E91.5010401@krang.f9.co.uk> <3d10edc6.1491361@news.virgin.net> <3D1101BE.40506@krang.f9.co.uk> <3d121553.1321895@news.virgin.net> <3D126A72.4123E49B@i.hate.spam> <pan.2002.06.21.07.16.04.89148.1938@databasix.com> <3D132DC5.2080202@krang.f9.co.uk> <pan.2002.06.21.10.08.49.163730.2532@databasix.com> <3D135D0D.3060804@krang.f9.co.uk>
X-Newsreader: MicroPlanet Gravity v2.30