Permanent variables are no longer protected against global() and clearglobal() (6.0 regression)
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
Scilab 5:
---------
-->global %i
!--error 13
Redefining permanent variable.
Scilab 6.0.0:
-------------
--> global %i <<==== NO LONGER COMPLAINS
--> %i
%i =
i
--> whos -name %i
Name Type Size Bytes
%i constant 1 by 1 0
%i constant* 1 by 1 0
%inf constant 1 by 1 0
%io constant 1 by 2 0
--> clear %i
Redefining permanent variable. <<=== OK
--> clearglobal %i <<=== DOES IT!
--> %i
Undefined variable: %i
--> whos -name %i
Name Type Size Bytes
%inf constant 1 by 1 0
%io constant 1 by 2 0
ERROR LOG:
----------
None: wrong action
HOW TO REPRODUCE THE BUG:
-------------------------
global %i
clearglobal %i