comp.lang.ada
 help / color / mirror / Atom feed
From: "Ludovic Brenta" <ludovic@ludovic-brenta.org>
Subject: Re: Scope of vector
Date: 8 Feb 2006 05:28:40 -0800
Date: 2006-02-08T05:28:40-08:00	[thread overview]
Message-ID: <1139405320.270752.197010@g44g2000cwa.googlegroups.com> (raw)
In-Reply-To: <43E9CF04.20808@mailinator.com>

As Alex said, the precise answer to your question (if we
understand your question well) is: you can't access LF
outside of the inner block.

But you can store the appended array in a separate
constant, which you can assess thus:

declare
    LI : constant Float_Array := Some_Initializer;
    LU : constant Float_Array := Function_Giving_LU;
begin
    declare
       LF : constant Float_Array := LI & LU;
    begin
       --  Here you can use all of LI, LU and LF
    end;
    --  Here you can use LU if you want to, but not LF.
end;

-- 
Ludovic Brenta.




      reply	other threads:[~2006-02-08 13:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-08  9:13 Scope of vector rashmi
2006-02-08  9:42 ` Martin Dowie
2006-02-08 10:59 ` Alex R. Mosteo
2006-02-08 13:28   ` Ludovic Brenta [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