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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 01 Sep 2009 02:35:32 +0200 From: Georg Bauhaus Reply-To: rm.tsoh-bauhaus@maps.futureapps.de User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Q: Line_IO References: <4a9b045a$0$31875$9b4e6d93@newsspool3.arcor-online.net> <1a4usf20z4mxa.1vct95fmrcs6h.dlg@40tude.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4a9c6c54$0$31329$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 01 Sep 2009 02:35:33 CEST NNTP-Posting-Host: 6325b331.newsspool4.arcor-online.net X-Trace: DXC=:58JVDWbX4A78PK[oJ2ng@4IUKOh=SG0cJ X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:8082 Date: 2009-09-01T02:35:33+02:00 List-Id: Robert A Duff wrote: > "Dmitry A. Kazakov" writes: >> procedure Print (Item : String) is >> subtype Index is Stream_Element_Offset range 1..Item'Length; >> subtype XBytes is Stream_Element_Array (Index); >> Alias : XBytes; >> for Alias'Address use Item'Address; >> begin >> Stream_IO.Write (Stdout, Alias); >> ... >> >> P.S. The superimposed object shall not have initializers. > > If it has default initialization, you can suppress it using: > > pragma Import (Ada, Alias); > > See 13.3(12.c) and B.1(38,38.a). I guess the "superimposed" object is Item, superimposed onto Alias?