From: Michael R <michael@zanyblue.com>
Subject: No "pragma Deprecated (NAME)"?
Date: Wed, 20 Jan 2010 19:47:28 -0800 (PST)
Date: 2010-01-20T19:47:28-08:00 [thread overview]
Message-ID: <bf6026c7-23df-4390-b3df-b2fa1cd0d1cb@36g2000yqu.googlegroups.com> (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.
next reply other threads:[~2010-01-21 3:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-21 3:47 Michael R [this message]
2010-01-21 3:57 ` No "pragma Deprecated (NAME)"? Jeffrey R. Carter
2010-01-21 4:00 ` Michael R
2010-01-21 9:30 ` Ludovic Brenta
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox