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,c4c8028cd0fdf47 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!fdn.fr!usenet-fr.net!nospam.fr.eu.org!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!cleanfeed2-a.proxad.net!nnrp12-1.free.fr!not-for-mail From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: Overriding the "lowest level" stream procedures References: Date: Sun, 11 Oct 2009 17:39:59 +0200 Message-ID: <87tyy6c52o.fsf@willow.rfc1149.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:PR4jKjeCZNbrWJFVPI3O36guiDk= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Leafnode-NNTP-Posting-Host: 2001:6f8:37a:2::2 Organization: Guest of ProXad - France NNTP-Posting-Date: 11 Oct 2009 17:40:02 MEST NNTP-Posting-Host: 91.121.19.179 X-Trace: 1255275602 news-4.free.fr 27809 91.121.19.179:43682 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:8666 Date: 2009-10-11T17:40:02+02:00 List-Id: >>>>> "xorque" == xorque writes: xorque> I think I probably need to define my own Stream type. Is this xorque> the case? You can plug your code at two different levels: - define your own stream type; you will manipulate byte arrays, but you will not have access to any type information; - define your own stream attributes: you will decide how typed values are transformed into/from byte arrays, but you cannot override this choice for predefined types as you have to define those attributes in the same declarative unit as the type definition itself. You will likely want to use the second method, in which case you'll have to refrain from using predefined types. Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/