From: "DuckE" <nospam_steved94@home.com>
Subject: Re: output something on the right side
Date: 2000/10/22
Date: 2000-10-22T00:00:00+00:00 [thread overview]
Message-ID: <m0EI5.8017$E85.130806@news1.sttls1.wa.home.com> (raw)
In-Reply-To: XbrI5.146$Vr6.118117@nnrp1.sbc.net
> > 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
prev parent reply other threads:[~2000-10-22 0:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-18 0:00 output something on the right side Paul
2000-10-18 0:00 ` tmoran
2000-10-19 0:00 ` Pascal Obry
2000-10-21 0:00 ` Robert Dewar
2000-10-21 0:00 ` DuckE
2000-10-21 0:00 ` Pat Rogers
2000-10-22 0:00 ` DuckE [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox