News for hackers. Stuff that matters.
Re:Learning Ada by 0xDEEPFAC on Thursday March 28, 2019 @09:22AM (#19511895)
Also, added in a recent version of the language (as part of 2020) you can simply use 'Image directly on an object saving you a bit of typing : ). And let me let you in on a secret Ada programmers don't talk about or put in examples - you don't have to type the Identifier at the end of the procedures!

   with Ada.Text_IO; use Ada.Text_IO;
   procedure Outp is
      procedure Foo (A : in out Integer) is
      begin
         Put_Line (A'Image);
      end;
      A : Integer := 12;
   begin
      Foo (A);
   end;
Re:Learning Ada by thestoicattack on Thursday March 28, 2019 @09:25AM (#19511922)
Ooh, I like that new 'Image usage.

I was told that adding the identifier to the end of blocks is just a good practice, since the compiler can tell you if you misread the nesting and wrote the wrong name.