comp.lang.ada
 help / color / mirror / Atom feed
* beginner array question
@ 2003-11-20 10:34 lolo27
  2003-11-20 12:00 ` Jeff C,
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: lolo27 @ 2003-11-20 10:34 UTC (permalink / raw)


hi
i am writing a generic package
generic
   ---------general parameters-----------
   type Someting is(<>);
   type something_array is Array (integer range<>) of Someting ;   

---------------------------------------------------
in the adb file i want to ask the following 
 function is_final(current_state:Someting ;final:something_array ) return boolean is
   begin
      if current_state in final'First..final'Last then
         return true;
      else
         return false;
      end if;  
   end is_final;
   
   ----

how can i ask if current_state is in final

thanks a lot



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

end of thread, other threads:[~2003-11-20 17:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-20 10:34 beginner array question lolo27
2003-11-20 12:00 ` Jeff C,
2003-11-20 12:03 ` David C. Hoos, Sr.
2003-11-20 17:40 ` Jeffrey Carter

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