<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello Eric,<br>
<br>
In Scilab 5, you could write strings on multiple lines using ... but
not only, it worked with everything.<br>
<br>
<tt>-->1..</tt><tt><br>
</tt><tt>-->2</tt><tt><br>
</tt><tt> ans =</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> 12. </tt><tt><br>
<br>
</tt>and more horrible<br>
<br>
<tt>-->fun..<br>
-->ction toto(..<br>
-->)<br>
-->disp("fu..<br>
-->nction");<br>
-->endf...<br>
-->unction<br>
</tt><tt> </tt><tt><br>
</tt><tt>-->toto()</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> function </tt><tt><br>
</tt><br>
In fact "..." are used to ignore the following end line.<br>
<br>
I hope you can understand we want to remove this kind of coding
style.<br>
To replace ... for strings case can you use + operator.<br>
<br>
<tt>-->"string1 and ...</tt><tt><br>
</tt><tt>-->string2"</tt><tt><br>
</tt><br>
become<br>
<br>
<tt>-->"string1 and " + ...</tt><tt><br>
</tt><tt>-->"string2"</tt><tt><br>
</tt><tt> ans =</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> string1 and string2</tt><br>
<br>
Antoine<br>
<div class="moz-cite-prefix">Le 08/09/2018 à 10:41, Éric Dubois a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAGgDjFTeO+zzUDERDk=W6Kn_yYRDB0FkF2BCwfJBArgzdpBiuA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div dir="ltr">Hello
<div><br>
</div>
<div>Can someone explain me why in Scilab 6, you cannot wirte a
string on several lines each line ending by "..."?</div>
<div><br>
</div>
<div>When you have a very long string, you have 2 choices that
are not appealing:</div>
<div>- write this string on a line, which is not very readable;</div>
<div>- define several strings covering different components of
the string and then add them to build your string, which is a
time consuming.</div>
<div><br>
</div>
<div>This change makes my productivity when programming in
Scilab decline and I do not see teh drawbacks that the old
working entailed.</div>
<div><br>
</div>
<div>Thansk for your answer.</div>
<div><br>
</div>
<div>Regards </div>
<div><br>
</div>
<div>Éric</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/dev">http://lists.scilab.org/mailman/listinfo/dev</a>
</pre>
</blockquote>
<br>
</body>
</html>