Pref::warnChanges
--
warnings about changes wrt. the previous version of MuPADPref::warnChanges(
TRUE)
switches on parser
warnings about the usage of obsolete features from previous
MuPAD versions.
Pref::warnChanges()
Pref::warnChanges(TRUE)
Pref::warnChanges(FALSE)
Pref::warnChanges(NIL)
the previously defined value
Allows or suppresses warning messages.
changes
Pref::warnDeadProcEnv
,
Pref::warnLexProcEnv
Pref::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
.If 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):
ERRORLEVEL
is obsolete:
>> Pref::warnChanges(TRUE): p := proc() begin ERRORLEVEL end:
Warning: Obselete environment variable 'ERRORLEVEL' used \ [_check_global]
>> Pref::warnChanges(FALSE):