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 vsandre  
#1 Posted : 08 February 2012 17:11:46(UTC)
vsandre

Rank: Newbie

Groups: Registered
Joined: 31/01/2012(UTC)
Posts: 8

If I pass a variable to a function, not only the value of the variable is passed. The hole variable is linked to the parameter. If work with the passed parameter and change it, the refering variable is also changed.

In my opinion it should not work this way. All parameters and new described variables should be privately used inside the function.

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

Offline omorr  
#2 Posted : 08 February 2012 19:23:12(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello,

This behavior has been introduced in v0.9, and some bugs corrected in 0.91. Please look at this post Functions behaves differently in 0.9. One of the reason is the graphs animations feature introduced.

Regards,
Radovan

Edited by user 08 February 2012 19:25:35(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline vsandre  
#3 Posted : 09 February 2012 12:54:52(UTC)
vsandre

Rank: Newbie

Groups: Registered
Joined: 31/01/2012(UTC)
Posts: 8

At the moment I doesn't like the behaviour, but I will try to follow the arguments.
Users browsing this topic
Guest
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.