From: Jean-Pierre Rosen <rosen@adalog.fr>
Subject: Re: String declaration and initialization
Date: Thu, 22 May 2008 18:40:29 +0200
Date: 2008-05-22T18:40:29+02:00 [thread overview]
Message-ID: <6m741g.vm2.ln@hunter.axlog.fr> (raw)
In-Reply-To: <g144j0$4cn$1@registered.motzarella.org>
S�bastien a �crit :
> Hi,
>
> Several times I had to do the following:
[...]
>
> But How can I do this since I can't declare a string without constraint?
>
declare
function choose_the_right_one return string is
begin
case SomeTest is
case TEST1 =>
return "Test1";
case TEST2 =>
return "Test2";
end case;
end choose_the_right_one;
buffer: String := Choose_The_Right_One;
begin
MyTreatment1(buffer, buffer'Size);
MyTreatment2(buffer, buffer'Size);
MyTreatment3(buffer, buffer'Size);
end;
--
---------------------------------------------------------
J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr
next prev parent reply other threads:[~2008-05-22 16:40 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
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 [this message]
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