Uso del Separate
Publicado por Novato (2 intervenciones) el 09/12/2006 18:24:48
Soy nuevo en la programacion en ADA y no se utilizar la clausula SEPARATE. Por lo que tengo entendido si tengo un procedimiento principal dentro de él puedo declarar otro procedimiento por separado y compilarlo aparte y en ese otro procedimiento tengo que hacer referencia al principal. ¿Es verdad? , ¿Está bien el ejemplo?, es que a mi no me va...
with text_IO
use text_IO
procedure principal is
variable: integer;
procedure segundo (variable_2: integer) is separate;
begin
....
segundo (variable);
....
end principal;
Y EL OTRO PROCEDIMIENTO SERÍA:
with ....
use....
separate (principal)
procedure segundo(variable:integer) is
declaraciones
.....
begin
.....
end segundo;
NO SE EN QUE ESTOY FALLADO, ¿Puede alguien ayudarme?
Gracias.
with text_IO
use text_IO
procedure principal is
variable: integer;
procedure segundo (variable_2: integer) is separate;
begin
....
segundo (variable);
....
end principal;
Y EL OTRO PROCEDIMIENTO SERÍA:
with ....
use....
separate (principal)
procedure segundo(variable:integer) is
declaraciones
.....
begin
.....
end segundo;
NO SE EN QUE ESTOY FALLADO, ¿Puede alguien ayudarme?
Gracias.
Valora esta pregunta
0