<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 09/03/2016 20:18, Serge Steer a
écrit :<br>
</div>
<blockquote cite="mid:56E076EB.2000607@inria.fr" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
Up to Scilab 5.5.2, we had <br>
<blockquote cite="mid:56DF64D9.4030508@free.fr" type="cite"><font
face="Calibri"> </font><tt>strcat([],"anything") == "" // as
well as</tt><tt><br>
</tt><tt>[] + "anything" == "" </tt><tt><br>
</tt><font face="Calibri">The fact that both expressions give
the same result is correct, since they mean exactly the same
operation.<br>
</font></blockquote>
<font face="Calibri">Not exactly the same meaning strcat(strarray,</font><tt>"anything")
adds "anything" between each element of </tt><br>
<font face="Calibri">strarray strcat("foo","blabla") ->"foo"
and not "fooblabla"<br>
So it is ok that </font><tt>strcat([], "anything") returns []
as there is no elements.<br>
</tt></blockquote>
<br>
<tt>Thank you Serge for your confirmation.<br>
You are right: both expressions do not mean exactly the same
thing, and even without respect to the []+ "trick", the current
behavior of strcat([],"")=>"" is not consistent. => reported
there: <a class="moz-txt-link-freetext" href="http://bugzilla.scilab.org/14453">http://bugzilla.scilab.org/14453</a><br>
<br>
Samuel<br>
</tt><tt></tt><br>
</body>
</html>