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,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!36g2000yqu.googlegroups.com!not-for-mail From: Michael R Newsgroups: comp.lang.ada Subject: No "pragma Deprecated (NAME)"? Date: Wed, 20 Jan 2010 19:47:28 -0800 (PST) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 76.126.186.109 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1264045648 31339 127.0.0.1 (21 Jan 2010 03:47:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 21 Jan 2010 03:47:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 36g2000yqu.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:8806 Date: 2010-01-20T19:47:28-08:00 List-Id: 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.