[Scilab-users] [SEP] [boolean integer_class] concatenations

Samuel Gougeon sgougeon at free.fr
Tue Apr 17 18:49:54 CEST 2018


Hello,

Surprisingly, as reported in http://bugzilla.scilab.org/15534, after 30 
years, Scilab still does not know how to concatenate booleans with 
encoded integers.
For instance :

--> [%f int8(-3)]

Undefined operation for the given operands.
check or define function %b_c_i for overloading.

It is surprising, because

  * For some languages like Octave, booleans are actually some numbers
    restricted to 0|1, and such simple concatenations are available.
  * Implementing it in Scilab is trivial and does not really set any
    question, since both 0 and 1 are present in all Scilab integer classes.

An implementation is proposed for Scilab 6.1 (see the bugzilla report).

Comments are welcome.

Samuel

PS : Please do not comment here about the concatenation of distinct 
integer classes together (like [int8(-3) uint16(10)]), or with decimal 
numbers. A dedicated report and thread will be opened for them. A survey 
of how other similar languages process such concatenations is in progress.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180417/b0e929d1/attachment.htm>


More information about the users mailing list