comp.lang.ada
 help / color / mirror / Atom feed
* problemn with string'last
@ 2023-05-05  9:51 Daniel Gaudry
  2023-05-05 10:02 ` Dmitry A. Kazakov
  2023-05-05 11:17 ` Jeffrey R.Carter
  0 siblings, 2 replies; 10+ messages in thread
From: Daniel Gaudry @ 2023-05-05  9:51 UTC (permalink / raw)


hi,
here is a code that i simplified

with Ada.Text_Io;
procedure Help
   is
   Double_Quote : constant String(1 .. 1) := (others => '"' );
   Data         : constant String         := "  PLUS_STRING    : CONSTANT STRING(1..3) :=(1 =>'" & Double_Quote & "' , 2 =>'+' , 3 =>'" & Double_Quote & ");";
   begin
 
   Ada.Text_Io.Put_Line("     05   10   15   20   25   30   35   40   45   50   55   65   70   75   80   85   90");
   Ada.Text_Io.Put_Line(" ....|....!....|....!....|....!....|....!....|....!....|....!....|....!....|....!....|....!");
   Ada.Text_Io.Put_Line("»" & Data & "« " & Data'Last'Img);
 
end Help;


but the data'last seems not to match the string size

Any help is welcome
best regards

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-05-05 23:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-05  9:51 problemn with string'last Daniel Gaudry
2023-05-05 10:02 ` Dmitry A. Kazakov
2023-05-05 11:17 ` Jeffrey R.Carter
2023-05-05 12:08   ` Dmitry A. Kazakov
2023-05-05 16:28   ` Manuel Gomez
2023-05-05 16:33     ` Simon Wright
2023-05-05 18:18       ` Manuel Gomez
2023-05-05 19:52         ` J-P. Rosen
2023-05-05 20:44         ` Simon Wright
2023-05-05 23:27           ` Jeffrey R.Carter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox