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: 103376,de80f1e90535dca5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news.netcologne.de!newsfeed-fusi.netcologne.de!151.189.20.20.MISMATCH!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Wed, 20 Apr 2005 03:21:48 +0200 From: Georg Bauhaus Organization: future apps GmbH User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050324 Debian/1.7.6-1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Trouble with Ada.Streams.Stream_Element References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4265aea2$0$7512$9b4e6d93@newsread2.arcor-online.net> NNTP-Posting-Date: 20 Apr 2005 03:21:38 MEST NNTP-Posting-Host: 6ec8680c.newsread2.arcor-online.net X-Trace: DXC=BWA@9o=WWEZC3N6I?YBjS[Q5U85hF6f;TjW\KbG]kaMX:cmYYm_h3\Sl>l[L Frank Gerlach wrote: > It is defined as follows: > type Stream_Element is mod 2 ** Standard'Storage_Unit; > I would like to convert it to an INTEGER. > How do I do this ? > > Thanks for helping a newbie ! Have you had a chance to look at some stream examples? For example, you could use Integer'read(your_input_stream, your_integer_variable); Usually a program just reads from a stream, it doesn't have to look at individual bits. Or are you implementing a new stream class? -- Georg