From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,bf20d1395cdb6de5 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!a6g2000yqm.googlegroups.com!not-for-mail From: Michael R Newsgroups: comp.lang.ada Subject: Re: No "pragma Deprecated (NAME)"? Date: Wed, 20 Jan 2010 20:00:36 -0800 (PST) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 76.126.186.109 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1264046437 31318 127.0.0.1 (21 Jan 2010 04:00:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 21 Jan 2010 04:00:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a6g2000yqm.googlegroups.com; posting-host=76.126.186.109; posting-account=iokpWwkAAAC4FdoU8cY5F_WfowBALHIE User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 GTB6,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8808 Date: 2010-01-20T20:00:36-08:00 List-Id: On Jan 20, 7:57=A0pm, "Jeffrey R. Carter" wrote: > Michael R wrote: > > > =A0 =A0function Name (T : My_Type) return String; > > =A0 =A0function To_String (T : My_Type) return String > > =A0 =A0 =A0 renames Name; > > =A0 =A0pragma Deprecated (To_String); > > "Deprecated" is not a language-defined pragma, but unrecognized pragmas s= hould > be ignored (ARM 2.8). I see nothing wrong with your function renaming. Wh= at > 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.