The following lint output is somewhat misleading if the class is of type
'singleton':
Data field 'myVariable' has a reference value. If data fields are
initialized in the members map with reference values like arrays or
maps they will be shared between all instances of the class. Usually
it is better to set the value to 'null' and initialize it in the
constructor.
In a singleton there is no difference, as there is only one instance of this
class, I think.
Cheers,
Fritz
--
Oetiker+Partner AG tel: +41 62 775 9903 (direct)
Fritz Zaucker +41 62 775 9900 (switch board)
Aarweg 15 +41 79 675 0630 (mobile)
CH-4600 Olten fax: +41 62 775 9905
Schweiz web: www.oetiker.ch
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel