[Scilab-Dev] Modifying permanent variables for Scicos

Enrico Segre enrico.segre at weizmann.ac.il
Sun Nov 16 12:27:18 CET 2008


> but when I try to protect the variables again I have the error
>
> -->predef('a')
>             !--error 13 
> Redefining permanent variable.
>
>   

bug of predef in scilab5 then? In fact,  predef('a') gives me error even 
in a fresh session. I have an idea about where this could come from:

-->predef()
 ans  =
 
    84. 
 
//be that, so there are 84 protected variables

-->predef(84)
 ans  =
 
    84.    84. 

//so far so good, 84 were protected before, 84 protected now
 
-->predef('a')
            !--error 13
Redefining permanent variable.

 
-->predef()
         !--error 13
Redefining permanent variable.
 
 
-->predef(84)
 ans  =
 
    85.    84. 
 
//wait  a moment -- 85 variables before? How come? Perhaps ans is taken 
into account?


Enrico



More information about the dev mailing list