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 - Messages

#1 Posted: 6/22/2013 3:15:47 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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 KiB) downloaded 50 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 users liked this post
Radovan Omorjan 6/22/2013 5:35:00 AM, ioan92 6/22/2013 7:16:00 AM
#2 Posted: 6/22/2013 3:41:52 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: 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 users liked this post
Radovan Omorjan 6/22/2013 5:35:00 AM, ioan92 6/22/2013 7:16:00 AM
  • New Posts New Posts
  • No New Posts No New Posts