-- Print a simple message to demonstrate a trivial Ada program. with Ada.Text_IO; use Ada.Text_IO; -- use clause - automatically search Ada.Text_IO. procedure Hello2 is begin Put_Line("Hello, world!"); -- Note: No longer has "Ada.Text_IO" in front. end Hello2;
If, in this new version of the program, you changed the second-to-last-line
back to:
Ada.Text_IO.Put_Line("Hello, world!");
would the program still work?
![]() |
![]() |
![]() |
---|
David A. Wheeler (dwheeler@dwheeler.com)
The master copy of this file is at
"http://www.adahome.com/Tutorials/Lovelace/s1s3.htm".