Hello Federico,

I agree with you that this would make more sense.
Could such a change be implemented for a point release?
I assume it would introduce some bugs in existing code relying on the (unusual) double output...

Antoine

On 09/02/2021 03:24, Federico Miyara wrote:

Dear all,

I had already mentioned this a while ago (http://mailinglists.scilab.org/Scilab-users-exists-yields-double-tt4039853.html), but as I guess we are in the update season, it would be good opportunity to fix this (if there isn't strong opposition, or a good reason for this behavior, of course).

I'm referring to the fact that the function exists() should by nature yield a Boolean result such as T or F. However, it yields 1 or 0. While this is not a big deal, similar functions performing a binary decision on their arguments, such as isreal(), isvector(), isfile() and many others, yield Boolean results.

Regards,

Federico Miyara

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Libre de virus. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to