Jan. 8, 2015
8:56 a.m.
Thanks a lot Marcus! Indeed I used it also like that once. Cheers, Roberto
On 07 Jan 2015, at 18:13, Marcus Denker <marcus.denker@inria.fr> wrote:
On 07 Jan 2015, at 14:06, Roberto Minelli <roberto.minelli@usi.ch> wrote:
Thank you, Clément!
We use instance var on class side is to implement singleton, for example. Iâve never used a class var and I am wondering what is a the most common use of such a variable?
Singletons where you have a hierarchy of classes and you want to have just one object for the whole hierarchy.
e.g. ThemeIcons, there the singleton was until recently a class instance variable, leading to us having multiple instances of the singleton in the image, one per subclass.
Marcus