[Scilab-users] All variables in scilab.ini/.scilab startup file turn protected? About predef() (1)

Samuel Gougeon sgougeon at free.fr
Thu Aug 6 18:37:55 CEST 2015


Le 06/08/2015 18:21, Samuel Gougeon a écrit :
> .../...
> Could anyone confirm this behavior? Here is the test:
>
> edit(SCIHOME+"/scilab.ini")
> //add the line
> a=1
> // in the file. Save it. Quit and restart Scilab. In the new session, try
> a    // should display 1
> clear a   // could display a warning. Nothing is display (reported as 
> http://bugzilla.scilab.org/9709 ?)
> a    // still here. Not deleted = protected

Even not. A piece of surealism, a=1 being written in scilab.ini:

Startup execution:
   loading initial environment
Warning : redefining function: head_comments           . Use funcprot(0) 
to avoid this message
------------------------------------------------------------
This is alpha version: avoid using in production
but please report any problem at http://bugzilla.scilab.org.
Thank you!
------------------------------------------------------------

--> a
a  =
     1.
--> clear a
--> a
a  =
     1.

--> a=2   // overwritable?!
a  =
     2.        // it looks that yes!
--> a
a  =
     2.       // not just a display issue..

--> clear a   // the last experience that should not be done...
--> a
a  =
     1.That's a ghost!!

--> a*2   // what should be expect: 2 or 4?
  ans  =
     2.

Any confirmation welcome.
SG

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20150806/f51db4dc/attachment.htm>


More information about the users mailing list