Mercurial > hg > octave-nkf
diff scripts/deprecated/intwarning.m @ 10413:271c5262975b
deprecate intwarning
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 16 Mar 2010 12:29:49 +0100 |
parents | scripts/miscellaneous/intwarning.m@7c211d0091d9 |
children | 95c3e38098bf |
line wrap: on
line diff
copy from scripts/miscellaneous/intwarning.m copy 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