Prevent element assignment to line() statements or provide a real clear() function

Prevent element assignment to line() statements or provide a real clear() function - BTS issue SS-18 - 消息

#1 已发布: 2013/6/22 03:15:47
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

I propose to somehow prevent variables of type line() - as they appear using the Clear() function - from being assigned elementwise.

Obviously, elementwise access is not by design anyways, because display of individual elements (statements) is not possible. The same should then apply for assignment.

Otherwise wrong or unexpected results may be obtained.

Alternatively: provide a clear() function, that sets undefined the value AND THE TYPE of the variable.
Clear.sm (40.91 KiB)已下载 1540 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
2位用户喜欢此帖子
Radovan Omorjan 2013/6/22 05:35:00, ioan92 2013/6/22 07:16:00
#2 已发布: 2013/6/22 03:41:52
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Already requested some day ago directly to Andrey, BTW an official post is a good way to do not forget it.

EDIT:
Wrote

Alternatively: provide a clear() function, that sets undefined the value AND THE TYPE of the variable.


IMHO that's the right way: codified, simple and strong


Best regards,

Davide
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
2位用户喜欢此帖子
Radovan Omorjan 2013/6/22 05:35:00, ioan92 2013/6/22 07:16:00
  • 有新帖
  • 无新帖