How to rename standard library functions
30 August 2023 at 20:34
I am unsuccessfully trying to rename Put_Line() as print().
I get this is silly, but it's just for my ease. Is this possible?
My code so far:
β
with Ada.Text_IO;
use Ada.Text_IO;
β
procedure Hello is
function print renames Put_Line;
begin
print("Hello, test world!");
New_Line;
print("I am an Ada program with package use.");
end Hello;
[link] [comments]