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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a30e2d840674d0ef X-Google-Attributes: gid103376,public From: bourguet@my-dejanews.com Subject: Re: Stream IO - Correct usage of Set_Index Date: 1999/03/02 Message-ID: <7bgej7$erj$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 450303714 References: <7bemc8$snn$1@whatsit.aston.ac.uk> X-Http-Proxy: NetCache@sj-netcache: Version 3.3R2P1D3, 1.0 x13.dejanews.com:80 (Squid/1.1.22) for client 158.140.3.201 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Tue Mar 02 10:30:05 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.05 [en] (X11; I; SunOS 5.5.1 sun4u) Date: 1999-03-02T00:00:00+00:00 List-Id: In article <7bemc8$snn$1@whatsit.aston.ac.uk>, gaukrogi@aston.ac.uk (Rofi) wrote: > Platform : Solaris, Linux > > Compiler : GNAT 3.10p > > Already Looked in : > Ada Reference Manual; The answer is there :-) > I have tried using the attribute Size which appears to return the > size of the datastructure in bits. On this compiler I can divide this by 8 > and I get the correct values but this method seem to me to be very Adalike. > Am I missing something monumentally obvious or ...... ? A stream is a stream of Stream_Element, so the size you want to divide by is Stream_Element'Size. But I'd usually design my program to have only to move to result of the "give me the current position" function (I've not my RM here, so I can't check). -- Jean-Marc -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own