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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,c5168ea14aa45fce X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.74.141 with SMTP id t13mr53872wiv.5.1359689120688; Thu, 31 Jan 2013 19:25:20 -0800 (PST) Path: bp2ni9412wib.1!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.103.MISMATCH!feeder3.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.86.MISMATCH!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newspeer1.nac.net!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!news.snarked.org!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!aioe.org!.POSTED!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.ada Subject: Re: Ada 2005+ interface example Date: Mon, 28 Jan 2013 17:02:04 -0500 Organization: The Wasteland Message-ID: References: NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Date: 2013-01-28T17:02:04-05:00 List-Id: In article , Gautier write-only wrote: > Thanks a lot, I'll have a look. Perhaps it would be useful that I > explain why I would eventually use interfaces. I am reviving a "toy > compiler" of the late 80's, SmallAda, which was in Turbo Pascal and a > Mac Pascal too, now translated in Ada and working. I would like to > turn the low level machine code emission into a "generic" form. > As I see it, it would be around a stream, with many methods, all > abstract for the root type, which would be implemented as code > emission for target processors (real or virtual). And perhaps > interfaces would be useful there (it is rather an intuition). I often return to the Rationale for Ada 2005, 2.4 Interfaces: -- John B. Matthews trashgod at gmail dot com