[Scilab-Dev] strcat([],"")~=[]+"" ? <= Re: A+[]
Samuel Gougeon
sgougeon at free.fr
Wed Mar 9 20:35:43 CET 2016
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20160309/041cae65/attachment.htm>
More information about the dev
mailing list