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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b6f13b7fb626a805 X-Google-Attributes: gid103376,public From: "DuckE" Subject: Re: output something on the right side Date: 2000/10/22 Message-ID: #1/1 X-Deja-AN: 684462983 References: <39ee03b7@alijku02.edvz.uni-linz.ac.at> <8ss997$6je$1@nnrp1.deja.com> <5OoI5.5432$E85.90720@news1.sttls1.wa.home.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Complaints-To: abuse@home.net X-Trace: news1.sttls1.wa.home.com 972229778 24.6.221.63 (Sun, 22 Oct 2000 08:49:38 PDT) Organization: @Home Network X-MSMail-Priority: Normal Reply-To: "DuckE" NNTP-Posting-Date: Sun, 22 Oct 2000 08:49:38 PDT Newsgroups: comp.lang.ada Date: 2000-10-22T00:00:00+00:00 List-Id: > > I get a compile error with the above code. I have a lot better luck > with: > > > > Put (String'(1..(80-s'Length)=>' ') & s); > > > Did you have the operator directly visible from Ada.Strings.Fixed? > > > with Ada.Text_IO; > use Ada.Text_IO; > with Ada.Strings.Fixed; > use Ada.Strings.Fixed; > > procedure test is > S : constant String := "Hello"; > begin > put_line( ((80-S'Length)*' ') & S ); > end test; > No. I guess that's the danger with not posting a complete example (as you just did). SteveD