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 Опубликовано: 22.06.2013 03:15:47
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 КиБ) скачан 49 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 пользователям понравился этот пост
Radovan Omorjan 22.06.2013 05:35:00, ioan92 22.06.2013 07:16:00
#2 Опубликовано: 22.06.2013 03:41:52
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 22.06.2013 05:35:00, ioan92 22.06.2013 07:16:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений