comp.lang.ada
 help / color / mirror / Atom feed
* String declaration and initialization
@ 2008-05-22 15:47 Sébastien
  2008-05-22 16:05 ` Dmitry A. Kazakov
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Sébastien @ 2008-05-22 15:47 UTC (permalink / raw)


Hi,

Several times I had to do the following:

declare
	buffer: String; --  Error at compile time
begin
	case SomeTest is
		case TEST1 =>
			buffer := "Test1";
		case TEST2 =>
			buffer := "Test2";
	end case;
	MyTreatment1(buffer, buffer'Size);
	MyTreatment2(buffer, buffer'Size);
	MyTreatment3(buffer, buffer'Size);
end;

But How can I do this since I can't declare a string without constraint?

Sebastien



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

end of thread, other threads:[~2008-05-23  9:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-22 15:47 String declaration and initialization Sébastien
2008-05-22 16:05 ` Dmitry A. Kazakov
2008-05-22 16:47   ` Sébastien
2008-05-23  8:18     ` Dmitry A. Kazakov
2008-05-23  9:33       ` Sébastien
2008-05-22 16:16 ` Matthew Heaney
2008-05-22 16:58   ` Sébastien
2008-05-22 17:11     ` Robert A Duff
2008-05-22 18:16     ` Matthew Heaney
2008-05-22 20:01     ` Jeffrey R. Carter
2008-05-22 16:40 ` Jean-Pierre Rosen
2008-05-22 18:09 ` Martin Krischik

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