From: Michael R <michael@zanyblue.com>
Subject: Re: No "pragma Deprecated (NAME)"?
Date: Wed, 20 Jan 2010 20:00:36 -0800 (PST)
Date: 2010-01-20T20:00:36-08:00 [thread overview]
Message-ID: <c03a0c90-a0a1-4df4-bf75-60c43366c133@a6g2000yqm.googlegroups.com> (raw)
In-Reply-To: hj8jps$1tb$1@tornado.tornevall.net
On Jan 20, 7:57 pm, "Jeffrey R. Carter"
<spam.jrcarter....@spam.acm.org> wrote:
> Michael R wrote:
>
> > 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?
>
> --
> Jeff Carter
> "Every sperm is sacred."
> Monty Python's the Meaning of Life
> 55
Hi,
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.
Take care,
Michael.
next prev parent reply other threads:[~2010-01-21 4:00 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 [this message]
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