1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="names">
4 <refname>names</refname>
5 <refpurpose>Scilab names syntax</refpurpose>
8 <title>Description</title><para>
9 Names of variables and functions must begin with a letter or one of
10 the following special characters '<literal>%</literal>', '<literal>_</literal>', '<literal>#</literal>', '<literal>!</literal>', '<literal>$</literal>', '<literal>?</literal>'.
13 Next characters may be letters or digits or any special character in '<literal>_</literal>',
14 '<literal>#</literal>', '<literal>!</literal>', '<literal>$</literal>', '<literal>?</literal>'.
18 Upper and lower case letters are different.
20 Names may be as long as you want but only the first 24 characters are
21 taken into account. If you exceed this limit you get a warning. Please note that this limitation will be fixed with the release of Scilab 6.
25 <title>Examples</title>
26 <programlisting role="example"><![CDATA[
31 My_Special_Color_Table=rand(10,3)
36 Try_to_use_a_long_name = 1 // long, but not too
37 Try_to_use_a_too_long_name = 1 // too long
39 // let we insert a second variable with similar long name...
40 Try_to_use_a_too_long_name2 = 2
42 // ... and see the value of first variable
43 disp(Try_to_use_a_too_long_name)
44 // Please note that this limitation will be fixed with the release of Scilab 6.