yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #03914
Re: How to use a plugin
2010/4/9 Václav Šmilauer <eudoxos@xxxxxxxx>
>
> > Oh, so we should always do like you suggest when we define global
> > variables if we want to maintain the parallel processing? If so, I
> > would suggest to add this point to Yade documentation so that we all
> > keep in mind (since parallel processing is enabled by default).
>
> I think it is noted at few places (like modifying Body::state from Law
> functors). That said, you shouldn't define globals in the first place,
> since they break encapsulation of objects and can lead to unexpected
> interactions. (Yade has only a few necessary globals (singletons, to be
> more precise): ClassFactory, SerializableSingleton and Omega. Even scene
> is not global. I wouldn't encourage that practice by documentation,
> supposing that you know what you do if you use globals...
>
Oh ok, thanks for clarification. I thought it was a potential normal
procedure (due to my lack of knowledge of OOP). Now I see.
cheers, Chiara
>
> Cheers, v.
>
>
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> Post to : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> More help : https://help.launchpad.net/ListHelp
>
References
-
How to use a plugin
From: boon chiaweng, 2010-04-01
-
Re: How to use a plugin
From: Václav Šmilauer, 2010-04-08
-
Re: How to use a plugin
From: Anton Gladky, 2010-04-08
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-08
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-08
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-09
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-09
-
Re: How to use a plugin
From: Václav Šmilauer, 2010-04-09
-
Re: How to use a plugin
From: chiara modenese, 2010-04-09
-
Re: How to use a plugin
From: Václav Šmilauer, 2010-04-09