comp.lang.ada
 help / color / mirror / Atom feed
From: lutz@iks-jena.de (Lutz Donnerhacke)
Subject: Re: Ada.Streams.Read Length Paramenter is not IN?
Date: Tue, 7 Aug 2001 20:21:25 +0000 (UTC)
Date: 2001-08-07T20:21:25+00:00	[thread overview]
Message-ID: <slrn9n0je5.gbg.lutz@belenus.iks-jena.de> (raw)
In-Reply-To: cCXb7.39349$Kd7.24285864@news1.rdc1.sfba.home.com

* tmoran@acm.org wrote:
>>  procedure Read(
>>    Stream : in out Filedescriptor_Stream_Type;
>>    Item   :    out Stream_Element_Array;
>>    Last   :    out Stream_Element_Offset) is
>>  begin
>>     Item := Read (Stream);
>>     Last := Item'Last;
>>  end Read;
>
>his is unlikely to work.

I got a hard to find CONTRAINT_ERROR. But debugging it I learned the
direction of discriminats of unconstraint out parameters.

>dynamic.  That's why Last is there - so you can see the length of the
>actual useful data portion of Item.

Very sensefull indeed. Thanx to all.



      reply	other threads:[~2001-08-07 20:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-07  9:02 Ada.Streams.Read Length Paramenter is not IN? Lutz Donnerhacke
2001-08-07 18:39 ` Ted Dennison
2001-08-07 20:18   ` Lutz Donnerhacke
2001-08-07 19:48 ` tmoran
2001-08-07 20:21   ` Lutz Donnerhacke [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