From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6b7d31ee31aa032 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-07 13:27:24 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news-FFM2.ecrc.net!news.iks-jena.de!lutz From: lutz@iks-jena.de (Lutz Donnerhacke) Newsgroups: comp.lang.ada Subject: Re: Ada.Streams.Read Length Paramenter is not IN? Date: Tue, 7 Aug 2001 20:21:25 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: NNTP-Posting-Host: belenus.iks-jena.de X-Trace: branwen.iks-jena.de 997215685 32092 217.17.192.34 (7 Aug 2001 20:21:25 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Tue, 7 Aug 2001 20:21:25 +0000 (UTC) User-Agent: slrn/0.9.6.3 (Linux) Xref: archiver1.google.com comp.lang.ada:11526 Date: 2001-08-07T20:21:25+00:00 List-Id: * 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.