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

#1 Objavljeno: 22. 6. 2013. 03:15:47
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: 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) preuzeto 1549 put(ova).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
2 korisnika je svidelo ovu objavu
Radovan Omorjan 22. 6. 2013. 05:35:00, ioan92 22. 6. 2013. 07:16:00
#2 Objavljeno: 22. 6. 2013. 03:41:52
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: 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 korisnika je svidelo ovu objavu
Radovan Omorjan 22. 6. 2013. 05:35:00, ioan92 22. 6. 2013. 07:16:00
  • Novi postovi
  • Nema novih postova