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-Thread: a07f3367d7,c5168ea14aa45fce X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.110.68 with SMTP id m4mr8425196qap.2.1359394065988; Mon, 28 Jan 2013 09:27:45 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.49.34.135 with SMTP id z7mr2308323qei.1.1359394065969; Mon, 28 Jan 2013 09:27:45 -0800 (PST) Path: k2ni3639qap.0!nntp.google.com!p13no5828767qai.0!postnews.google.com!l13g2000yqe.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 28 Jan 2013 09:27:45 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: l13g2000yqe.googlegroups.com; posting-host=188.61.3.53; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 188.61.3.53 References: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.56 Safari/537.17,gzip(gfe) Message-ID: Subject: Re: Ada 2005+ interface example From: Gautier write-only Injection-Date: Mon, 28 Jan 2013 17:27:45 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2013-01-28T09:27:45-08:00 List-Id: 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). Cheers Gautier