S
Schüle Daniel
Guest
Hello,
I have a simple question and my book doesn't have the answer
given a procedure declaration in the package and
its definition in a package body
package X is
procedure xxx(variable a: out integer); -- a
end;
package body X is
procedure xxx(variable b: out integer) is -- b --(2)
begin
b := 1; -- (1)
end;
end;
is it allowed to rename the parameters in such way?
ghdl gives an error message at (1) that 'b' is not declared
however (2) was accepted.
Regards, Daniel
I have a simple question and my book doesn't have the answer
given a procedure declaration in the package and
its definition in a package body
package X is
procedure xxx(variable a: out integer); -- a
end;
package body X is
procedure xxx(variable b: out integer) is -- b --(2)
begin
b := 1; -- (1)
end;
end;
is it allowed to rename the parameters in such way?
ghdl gives an error message at (1) that 'b' is not declared
however (2) was accepted.
Regards, Daniel