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,dbbbb21ed7f581b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!k19g2000yqc.googlegroups.com!not-for-mail From: xorque Newsgroups: comp.lang.ada Subject: Re: Operation can be dispatching in only one type Date: Fri, 13 Nov 2009 12:43:42 -0800 (PST) Organization: http://groups.google.com Message-ID: <808f80de-bf2d-4546-b39a-2fb3979449c2@k19g2000yqc.googlegroups.com> References: <025105f2-5571-400e-a66f-ef1c3dc9ef32@g27g2000yqn.googlegroups.com> <1fgkluza4covm.5lfcsusar8cy$.dlg@40tude.net> NNTP-Posting-Host: 78.143.202.207 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1258145022 15150 127.0.0.1 (13 Nov 2009 20:43:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 13 Nov 2009 20:43:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k19g2000yqc.googlegroups.com; posting-host=78.143.202.207; posting-account=D9GNUgoAAAAmg7CCIh9FhKHNAJmHypsp User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.0.13) Gecko/2009081019 Firefox/3.0.13,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8096 Date: 2009-11-13T12:43:42-08:00 List-Id: Thanks for the response. It may be that I don't want to design the interface like the above at all. The only real requirement is that: Archivers use a common protocol: Code just sees operations on Archiver_t'Class and doesn't know if it's reading from a Zip, RAR, directory, etc. Presumably, then, when I open a file using an operation from an archiver, I can't know about the implementation of the actual file as it's private to the archiver. Hence, I've ended up with two private tagged types. Is there a better way (I've not ignored your other suggestions, I'm just exploring other possibilities first)?