Parameters of a function are linked with passed variables

Parameters of a function are linked with passed variables - Messages

#1 Posted: 2/8/2012 10:11:46 AM
vsandre

vsandre

0 likes in 8 posts.

Group: User

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.

#2 Posted: 2/8/2012 12:23:12 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

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
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Posted: 2/9/2012 5:54:52 AM
vsandre

vsandre

0 likes in 8 posts.

Group: User

At the moment I doesn't like the behaviour, but I will try to follow the arguments.
  • New Posts New Posts
  • No New Posts No New Posts