T
Tricky
Guest
consider the following functions:
function get_i return integer is
begin
return 10;
end function get_i;
function get_i return boolean is
begin
return true;
end function get_i;
they both have the same name but different return types. are these
going to be safe in something like this statement across most, if not
all simulators?
echo(integer'image(get_i) & " " & boolean'image(get_i) & LF);
Am I creating a potentially confusing (for the simulator/synthesisor)
situation?
function get_i return integer is
begin
return 10;
end function get_i;
function get_i return boolean is
begin
return true;
end function get_i;
they both have the same name but different return types. are these
going to be safe in something like this statement across most, if not
all simulators?
echo(integer'image(get_i) & " " & boolean'image(get_i) & LF);
Am I creating a potentially confusing (for the simulator/synthesisor)
situation?