From: Sébastien <seb.morand@gmail.com>
Subject: Re: String declaration and initialization
Date: Thu, 22 May 2008 16:47:44 +0000
Date: 2008-05-22T16:47:44+00:00 [thread overview]
Message-ID: <4835A3B0.4010101@gmail.com> (raw)
In-Reply-To:
> declare
> function Test return String is -- Ada has scoped subprograms
> begin
> case Some_Test is
> when Test_1 => return "Test1";
> ...
> end case;
> end Test;
> Buffer: constant String := Test;
> begin
> My_Treatment_1 (Buffer);
> ...
Good idea, but there are some other treatments in the case actually.
something like:
buffer := test1;
buffer_type := 3;
and so on.
So if I use another function, I have to implement 2 cases in order to do it.
next prev parent reply other threads:[~2008-05-22 16:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox