Mercurial > hg > octave-terminal
changeset 10413:271c5262975b
deprecate intwarning
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 16 Mar 2010 12:29:49 +0100 |
parents | d2ac9433cd09 |
children | 2a8b1db1e2ca |
files | scripts/ChangeLog scripts/deprecated/intwarning.m scripts/deprecated/module.mk scripts/miscellaneous/intwarning.m scripts/miscellaneous/module.mk |
diffstat | 4 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-03-16 Jaroslav Hajek <highegg@gmail.com> + + * miscellaneous/intwarning.m: Deprecate. + 2010-03-11 Jaroslav Hajek <highegg@gmail.com> * strings/index.m: Make it a wrapper for strfind.
rename from scripts/miscellaneous/intwarning.m rename to scripts/deprecated/intwarning.m --- a/scripts/miscellaneous/intwarning.m +++ b/scripts/deprecated/intwarning.m @@ -62,8 +62,19 @@ ## @seealso{warning} ## @end deftypefn +## Deprecated in v. 3.4 + function y = intwarning (x) + persistent warned = false; + if (! warned) + warned = true; + warning ("Octave:deprecated-function", + "intwarning is obsolete and will be removed from a future version of Octave. Integer math no longer produces warnings. Supply your own checks if you need those."); + endif + + return; + if (nargin != 1) print_usage (); else