comp.lang.ada
 help / color / mirror / Atom feed
* No "pragma Deprecated (NAME)"?
@ 2010-01-21  3:47 Michael R
  2010-01-21  3:57 ` Jeffrey R. Carter
  0 siblings, 1 reply; 4+ messages in thread
From: Michael R @ 2010-01-21  3:47 UTC (permalink / raw)


Hi folks,

I was re-organizing some code and wanted to change some procedure/
function names, e.g.,

    function To_String (T : My_Type) return String;

becomes

   function Name (T : My_Type) return String;

Without consulting the docs, I tried

   function Name (T : My_Type) return String;
   function To_String (T : My_Type) return String
      renames Name;
   pragma Deprecated (To_String);

I guess I'm too used to annotating methods in Java and was surprised I
couldn't do this in Ada.

The only way to do this is to simply rename and fix the compilation
errors which is may be in the Ada style: just get it right.

Take care,
Michael.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-21  9:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-21  3:47 No "pragma Deprecated (NAME)"? Michael R
2010-01-21  3:57 ` Jeffrey R. Carter
2010-01-21  4:00   ` Michael R
2010-01-21  9:30     ` Ludovic Brenta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox