From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,309015504ed37ff0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-26 13:37:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!nntp.cifnet.net!news-out1.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!newsfeed.mathworks.com!nntp.abs.net!ash.uu.net!spool.news.uu.net!not-for-mail Date: Fri, 26 Sep 2003 16:37:11 -0400 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030917 Thunderbird/0.3a X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Usage of Interfaces with Ada 95 References: <1064595326.831730@master.nyc.kbcfp.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1064608631.639035@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@aphelion.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1064608631 17887 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:43026 Date: 2003-09-26T16:37:11-04:00 List-Id: Michael Erdmann wrote: > The point is that in java i am able to provide an interface > which is called IIterator and use this interface in different > implementation, but it is the same interface which has to be > understood by the programmer only once! No; what does your iterator return when you ask for the next element? An Object, I presume. Then the client must cast it to the type he thinks it is. That's a terrible interface, and certainly not worth copying.