comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: Trouble with Ada.Streams.Stream_Element
Date: Wed, 20 Apr 2005 03:21:48 +0200
Date: 2005-04-20T03:21:38+02:00	[thread overview]
Message-ID: <4265aea2$0$7512$9b4e6d93@newsread2.arcor-online.net> (raw)
In-Reply-To: <d18a5f0d.0504191527.72f0fe31@posting.google.com>

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 



      parent reply	other threads:[~2005-04-20  1:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-19 23:27 Trouble with Ada.Streams.Stream_Element Frank Gerlach
2005-04-19 23:46 ` Eric Jacoboni
2005-04-20  0:05 ` Stephen Leake
2005-04-20  1:21 ` Georg Bauhaus [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox