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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Binary and XML serialization of types Date: Thu, 23 Jan 2014 22:44:16 +0000 Organization: A noiseless patient Spider Message-ID: References: <20a36d96-850e-4020-8dfa-777eb9c944f4@googlegroups.com> <9e27abb7-e944-4bd4-a10c-600fe4da7872@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="f4c34a0d1a0b50d7528d4047756bbea8"; logging-data="23480"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rdPiLJg8tvGv9tWyp3nq/ETdsz8dnNiA=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:7mOBsQnTPd8ywY8E6pWTOY+5ANA= sha1:AO0MFdJN3hKwQTiBB3NIvnyVcjE= X-Original-Bytes: 1650 Xref: number.nntp.dca.giganews.com comp.lang.ada:184532 Date: 2014-01-23T22:44:16+00:00 List-Id: adambeneschan@gmail.com writes: > What's going on is that if some client package says "with A.Types" and > uses the Guid_Write type, and uses Guid_Write'Write(...) or > Guid_Write'Output(...), the client has to know that there's a Write > routine that isn't the default. That's why the "for Guid_Write'Write > use ..." has to be in the visible part of A.Types, so that other > clients are allowed to know about it. The type was called Guid. But, more importantly, are you sure about this? GNAT's Ada.Containers.Vectors, for example, declares the stream-related stuff in the private part.