comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Text_IO from a stream
Date: Tue, 1 Apr 2008 09:49:59 +0200
Date: 2008-04-01T09:49:59+02:00	[thread overview]
Message-ID: <d8n359u8u22c.gbd9da0w938c$.dlg@40tude.net> (raw)
In-Reply-To: 47f14f8c_2@news.bluewin.ch

On Mon, 31 Mar 2008 22:54:35 +0200, Gautier wrote:

> Dmitry A. Kazakov:
> 
> Meanwhile (#ada irc...) there seems to be a nice solution:
> 
> http://jesselang.com/software/streams_text_io/

Yes.

>>> Well, I think I'll switch to a binary format...
>> 
>> I would do that too. Also I would override 'Read and 'Write in order to
>> make it platform-independent. (Stream_Element should be replaced by
>> octets.)
> 
> No problem with that - there is already a framework in that package (for other 
> files) that sends things byte-per-byte in a deterministic endianess; floats are 
> split/merged with certain a Float_portable_binary_transfer package.

No, I meant your idea of a text-oriented stream. So Float'Write would put
Float in a human-readable format (instead of Put). But of course, a binary
transfer is always preferable.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2008-04-01  7:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-31 15:27 Text_IO from a stream gautier_niouzes
2008-03-31 15:49 ` Dmitry A. Kazakov
2008-03-31 16:05   ` gautier_niouzes
2008-03-31 16:33     ` Dmitry A. Kazakov
2008-03-31 19:17       ` Gautier
2008-03-31 19:47         ` Dmitry A. Kazakov
2008-03-31 20:54           ` Gautier
2008-04-01  7:49             ` Dmitry A. Kazakov [this message]
2008-04-01 20:49           ` Simon Wright
2008-04-02  7:36             ` Dmitry A. Kazakov
replies disabled

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