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

#1 Pubblicato: 22/06/2013 03:15:47
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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) scaricato 1525 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
2 utenti hanno apprezzato questo post
Radovan Omorjan 22/06/2013 05:35:00, ioan92 22/06/2013 07:16:00
#2 Pubblicato: 22/06/2013 03:41:52
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 utenti hanno apprezzato questo post
Radovan Omorjan 22/06/2013 05:35:00, ioan92 22/06/2013 07:16:00
  • Nuovi post
  • Nessun nuovo post