[Scilab-users] tlist

classic Classic list List threaded Threaded
2 messages Options
fmiyara fmiyara
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] tlist


Dear all,

The documentation of rationals (https://help.scilab.org/docs/6.1.0/en_US/rational.html) mentions

 R = tlist(['r','num','den','dt'], Num, Den,[])

However, if one attempts to create a rational with this syntax the result is an error message. Is it because the first argument is sort of protected and cannot be redefined?

If this is the case it would be great if it were clarified in the documentation to avoid confusion.

Regards,

Federico Miyara

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Samuel GOUGEON Samuel GOUGEON
Reply | Threaded
Open this post in threaded view
|

Re: tlist

Le 28/02/2020 à 22:52, Federico Miyara a écrit :

Dear all,

The documentation of rationals (https://help.scilab.org/docs/6.1.0/en_US/rational.html) mentions

 R = tlist(['r','num','den','dt'], Num, Den,[])

However, if one attempts to create a rational with this syntax the result is an error message. Is it because the first argument is sort of protected and cannot be redefined?

If this is the case it would be great if it were clarified in the documentation to avoid confusion.


You are right, Federico. The message should be

But this must be done with care, because some internal objects like state-space systems or Xcos objects, or others, use mlist() or tlist() as we do for true custom external typeof.
Such a protection is the aim of the quite old but still alive report #2307.

Regards
Samuel



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