Pref::warnChanges --
warnings about changes wrt. the previous version of MuPAD
IntroductionPref::warnChanges(TRUE) switches on parser
warnings about the usage of obsolete features from previous
MuPAD versions.
Call(s)Pref::warnChanges()
Pref::warnChanges(TRUE)
Pref::warnChanges(FALSE)
Pref::warnChanges(NIL)
Returnsthe previously defined value
Side
EffectsAllows or suppresses warning messages.
Further
Documentationchanges
Related
FunctionsPref::warnDeadProcEnv,
Pref::warnLexProcEnv
DetailsPref::warnChanges() returns the current
value.Pref::warnChanges(TRUE) switches warning
messages on. Now the parser warns if environment variables are declared
as local variables (use save instead) or obsolete environment
variables are used.Pref::warnChanges(NIL) or
Pref::warnChanges(FALSE) will reset the
default value, which is FALSE.
Example
1If an environment variable is declared as local variable a warning is given:
>> Pref::warnChanges(TRUE): p := proc() local DIGITS; begin x end:
Warning: Former environment variable 'DIGITS' used as local [l\
ine 2, col 25]
Use save instead of local for environment varibles:
>> p := proc() save DIGITS; begin x end:
>> Pref::warnChanges(FALSE):
Example
2ERRORLEVEL is obsolete:
>> Pref::warnChanges(TRUE): p := proc() begin ERRORLEVEL end:
Warning: Obselete environment variable 'ERRORLEVEL' used \
[_check_global]
>> Pref::warnChanges(FALSE):