Le 09/03/2016 20:18, Serge Steer a écrit :
Up to Scilab 5.5.2, we had
strcat([],"anything") == "" // as well as
[] + "anything" == ""
The fact that both expressions give the same result is correct, since
they mean exactly the same operation.
Not exactly the same meaning strcat(strarray,"anything") adds
"anything" between each element of
strarray strcat("foo","blabla") ->"foo" and not "fooblabla"
So it is ok that strcat([], "anything") returns [] as there is no
elements.
Thank you Serge for your confirmation.
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:
http://bugzilla.scilab.org/14453
Samuel
_______________________________________________
dev mailing list
dev@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/dev