The use of IN OUT in ada..
Posted
by maddy
on Stack Overflow
See other posts from Stack Overflow
or by maddy
Published on 2010-06-09T06:20:15Z
Indexed on
2010/06/09
6:22 UTC
Read the original article
Hit count: 290
ada
HI all,
Given below is a code in ada
with TYPE_VECT_B; use TYPE_VECT_B;
Package TEST01 is
procedure TEST01
( In_State : IN VECT_B ;
Out_State : IN OUT VECT_B );
function TEST02
( In_State : IN VECT_B ) return Boolean ;
end TEST01;
The TYPE_VECT_B package specification and body is also defined below
Package TYPE_VECT_B is
type VECT_B is array (INTEGER range <>) OF BOOLEAN ;
rounded_data : float ;
count : integer ;
trace : integer ;
end TYPE_VECT_B;
Package BODY TYPE_VECT_B is
begin
null;
end TYPE_VECT_B;
What does the variable In_State and Out_State actually mean?I think In_State means input variable.i just get confused to what actually Out_State means?
Thanks
Maddy
© Stack Overflow or respective owner