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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd5431b81b9708ee,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-26 07:34:04 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: papand0pul0@yahoo.com (Papandopulo) Newsgroups: comp.lang.ada Subject: Deference question Date: 26 Feb 2003 07:34:03 -0800 Organization: http://groups.google.com/ Message-ID: <1d13e1b4.0302260734.7b26fece@posting.google.com> NNTP-Posting-Host: 63.208.87.8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1046273644 8103 127.0.0.1 (26 Feb 2003 15:34:04 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 26 Feb 2003 15:34:04 GMT Xref: archiver1.google.com comp.lang.ada:34608 Date: 2003-02-26T15:34:04+00:00 List-Id: Maybe simple question, but I am just starting with Ada. I try to read an array from file using streams: declare type X_Value is mod 2**8; type X_Buffer is array (Positive range <>) of X_Value; type X_Buffer_Access is access all X_Buffer; type X_Buffer_Sz is new X_Buffer (1 .. Positive(Q_Bytes)); type X_Buffer_Sz_Access is access all X_Buffer_Sz; Buff : X_Buffer_Sz_Access; begin Buff := new X_Buffer_Sz; X_Buffer_Sz'Read (X_Stream, Buff'all); end; But gnat tells me: attribute designator expected on the dereference (Buff'all) What's wrong ? Thank you, George