❌ About FreshRSS

Normal view

There are new articles available, click to refresh the page.
Before yesterdayAda: When the software HAS to work

How to rename standard library functions

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;


print("Hello, test world!");


print("I am an Ada program with package use.");

end Hello;

submitted by /u/SachemAgogic
[link] [comments]