[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Depreciated Functions
From: |
Bill Denney |
Subject: |
Re: Depreciated Functions |
Date: |
Fri, 20 Jan 2006 16:34:27 -0500 (EST) |
On Fri, 20 Jan 2006, John W. Eaton wrote:
Since all these warnings will be the same except for the names of the
functions, perhaps we should introduce a new function to shorten this
to
__warn_deprecated__ ("depfxn", "newfxn");
I created that function. I use 2.1.72 on a daily basis, so I can only
assume that it will work the same way under the new warning function.
I made the change via a perl script which I've attached. I also attached
the __warn_deprecated__ function which I think would be best in the
miscellaneous directory.
scripts/ChangeLog:
2006-01-20 Bill Denney <address@hidden>
* deprecated/*: Add a warning to all functions warning that the
function is deprecated.
* miscellaneous/__warn_deprecated__.m: Give a standard warning for
deprecated functions.
I don't know if you want to keep the perl script (it doesn't really strike
me as necessary since all deprecated functions in the future should just
be created with the __warn_deprecated__ line in them. If you do, here is
a Changelog for it:
ChangeLog:
2006-01-20 Bill Denney <address@hidden>
* fixdeprecated.pl: add a warning to all deprecated scripts.
Bill
--
"My biology I know. You I worry about." -- unknown
__warn_deprecated__.m
Description: Text document
fixdeprecated.pl
Description: Text Data
deprecated.diff
Description: Text document