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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b863ca48c5b37b7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!k78g2000cwa.googlegroups.com!not-for-mail From: "Anh Vo" Newsgroups: comp.lang.ada Subject: Re: My bug or compiler bug? Date: 14 Feb 2007 18:22:55 -0800 Organization: http://groups.google.com Message-ID: <1171506175.522233.313670@k78g2000cwa.googlegroups.com> References: <1171486682.699549.276940@l53g2000cwa.googlegroups.com> <1171500284.2394.26.camel@localhost> NNTP-Posting-Host: 69.232.218.24 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1171506181 28452 127.0.0.1 (15 Feb 2007 02:23:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 15 Feb 2007 02:23:01 +0000 (UTC) In-Reply-To: <1171500284.2394.26.camel@localhost> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: k78g2000cwa.googlegroups.com; posting-host=69.232.218.24; posting-account=JVr7Xg0AAAAI3MbuARxMmvWLmA7qdJMx Xref: g2news2.google.com comp.lang.ada:9333 Date: 2007-02-14T18:22:55-08:00 List-Id: On Feb 14, 4:44 pm, Georg Bauhaus wrote: > On Wed, 2007-02-14 at 12:58 -0800, Anh Vo wrote: > > I could not understand why it, line 44 of the code below, compiles. I > > strugged with the question why actual parameter R'(10.0, 20.0) matches > > with access type parameter R_Pointer at line 15. Is it my bug or > > compiler bug? Thanks. > > > for R_Pointer'Write use Write_R_Pointer; > > > R'Write (File_Stream, R'(10.0, 20.0)); --# Why is OK while data > > mismached > > I think R'Write is just the standard 'Write, expecting > record components as usual. (Unlike R_Pointer'Write) > > -- Georg Thank you very much for pointing it. For some reason, may be after 6:00 PM syndrome, I was thinking R_Pointer'Write instead of R'Write. AV