Parameters of a function are linked with passed variables

Parameters of a function are linked with passed variables - Сообщения

#1 Опубликовано: 08.02.2012 10:11:46
vsandre

vsandre

0 сообщений из 8 понравились пользователям.

Группа: 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 Опубликовано: 08.02.2012 12:23:12
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: 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 Опубликовано: 09.02.2012 05:54:52
vsandre

vsandre

0 сообщений из 8 понравились пользователям.

Группа: User

At the moment I doesn't like the behaviour, but I will try to follow the arguments.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений