From: Maciej Sobczak <no.spam@no.spam.com>
Subject: Re: I/O streaming with custom data transport
Date: Wed, 22 Nov 2006 11:39:48 +0100
Date: 2006-11-22T11:39:48+01:00 [thread overview]
Message-ID: <ek19dl$moq$1@cernne03.cern.ch> (raw)
In-Reply-To: <4silcoFvv69nU1@mid.individual.net>
Alex R. Mosteo wrote:
> About traps, more complex streams may require special care: for example,
> imagine your characters are multi-byte and you receive an incomplete
> character code in the write function.
Sure.
But what about buffering the input/output. Is this already done (where?)
or is this something I have to take care of?
Another issue - what about the text formatting? The standard Put(...)
procedures are quite powerful, is there any way to reuse them (or at
least their logic) with custom streams?
> Just a nitpick: in your example, instead of allocating a new stream I would
> simply get an access to a stack-allocated one:
>
> declare
> S2 : aliased My_Stream;
> begin
> Write_Hello (S2'Access);
> end;
Yes, thanks.
--
Maciej Sobczak : http://www.msobczak.com/
Programming : http://www.msobczak.com/prog/
next prev parent reply other threads:[~2006-11-22 10:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-21 15:11 I/O streaming with custom data transport Maciej Sobczak
2006-11-21 15:28 ` gautier_niouzes
2006-11-21 17:51 ` Alex R. Mosteo
2006-11-22 9:16 ` Maciej Sobczak
2006-11-22 10:01 ` Alex R. Mosteo
2006-11-22 10:39 ` Maciej Sobczak [this message]
2006-11-22 16:06 ` Dmitry A. Kazakov
2006-11-22 16:30 ` Alex R. Mosteo
2006-11-23 5:48 ` Simon Wright
2006-11-22 13:50 ` Robert A Duff
2006-11-22 14:37 ` Maciej Sobczak
2006-11-22 16:11 ` Georg Bauhaus
2006-11-21 19:02 ` Dmitry A. Kazakov
2006-11-22 9:21 ` Maciej Sobczak
2006-11-22 10:31 ` 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