comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier <gautier@fakeaddress.nil>
Subject: Re: Byte streams
Date: Thu, 02 Aug 2007 22:18:26 +0200
Date: 2007-08-02T22:18:26+02:00	[thread overview]
Message-ID: <46b23bef_7@news.bluewin.ch> (raw)
In-Reply-To: <1186082475.711489.104420@e9g2000prf.googlegroups.com>

You seem to bump against the "strong-typing vs. mixed data stream" issue that 
Ada 95 (and later) solves with Ada.Streams. No need to define i/o for every 
type, no need of unchecked_conversion; and unconstrained types are also 
supported iirc.
Look at the 'Read, 'Write, 'Input, 'Output ( a bit of search gives... 
http://www.adaic.com/standards/95lrm/html/RM-13-13-2.html )

Here is an example of a custom input stream, from a zip file:

http://homepage.sunrise.ch/mysunrise/gdm/uza_html/test_unz_streams__adb.htm

Maybe you are looking at something else, but I have the impression that you'll 
like these streams...
HTH
______________________________________________________________
Gautier         -- http://www.mysunrise.ch/users/gdm/index.htm
Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm

NB: For a direct answer, e-mail address on the Web site!



  reply	other threads:[~2007-08-02 20:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-02 19:21 Byte streams shaunpatterson
2007-08-02 20:18 ` Gautier [this message]
2007-08-02 20:27 ` tmoran
2007-08-02 21:44   ` Robert A Duff
2007-08-02 22:45     ` tmoran
2007-08-02 22:54       ` shaunpatterson
2007-08-03  5:34 ` Jeffrey R. Carter
2007-08-03 13:15   ` shaunpatterson
2007-08-10 20:22     ` Simon Wright
replies disabled

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