Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline mkraska  
#1 Posted : 22 June 2013 10:15:47(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
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.

Edited by user 27 March 2014 16:18:26(UTC)  | Reason: Not specified

File Attachment(s):
Clear.sm (41kb) downloaded 29 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 2 users thanked mkraska for this useful post.
on 22/06/2013(UTC),  on 22/06/2013(UTC)

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Davide Carpi  
#2 Posted : 22 June 2013 10:41:52(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
Location: Italy

Was thanked: 1323 time(s) in 873 post(s)
Already requested some day ago directly to Andrey, BTW an official post is a good way to do not forget it. Good

EDIT:
Originally Posted by: mkraska Go to Quoted Post
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 Good


Best regards,

Davide

Edited by user 22 June 2013 20:00:04(UTC)  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
thanks 2 users thanked Davide Carpi for this useful post.
on 22/06/2013(UTC),  on 22/06/2013(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.