comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: No "pragma Deprecated (NAME)"?
Date: Thu, 21 Jan 2010 01:30:33 -0800 (PST)
Date: 2010-01-21T01:30:33-08:00	[thread overview]
Message-ID: <17ac14ee-617f-4370-bb9e-ad0fbb540d00@k35g2000yqb.googlegroups.com> (raw)
In-Reply-To: c03a0c90-a0a1-4df4-bf75-60c43366c133@a6g2000yqm.googlegroups.com

Michael R wrote on comp.lang.ada:
> On Jan 20, 7:57 pm, "Jeffrey R. Carter"
>>>    function Name (T : My_Type) return String;
>>>    function To_String (T : My_Type) return String
>>>       renames Name;
>>>    pragma Deprecated (To_String);
>
>> "Deprecated" is not a language-defined pragma, but unrecognized pragmas should
>> be ignored (ARM 2.8). I see nothing wrong with your function renaming. What
>> error message did you get?
>
> Yes, it generated a warning as un-recognized but I was hoping for the
> functionality, i.e., the implementation of this pragma where usage
> of the old name generates deprecated warning when used.

GNAT has an implementation-defined "pragma Obsolescent", see

http://gcc.gnu.org/onlinedocs/gnat_rm/Pragma-Obsolescent.html

--
Ludovic Brenta.



      reply	other threads:[~2010-01-21  9:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
replies disabled

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