predefined functions in Scilab

Manjusha Joshi manjusha.joshi at gmail.com
Thu Sep 22 12:51:05 CEST 2011


Hello,

sum, prod etc. are predefined functions in scilab.

if some one with out knowing the name of the  predefind function use  it as
avariable name, as follows:


-->A=[2,3,4,78]
 A  =

    2.    3.    4.    78.

-->sum(A)
 ans  =

    87.

-->sum=96
 sum  =

    96.

-->sum(A)
       !--error 21
Invalid index.



 scilab not even complains. In old versions at least there was some error
message.

This happens in the current session only.
Is there any way to protect the predefined functions and their names?
I think we should declare these function names as predefined functions.


-- 
Manjusha S. Joshi

blog:http://manjushajoshi.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20110922/3e32596c/attachment.htm>


More information about the users mailing list