Kent,
I think I understand what
singleton means: A class which has only one object belonging to it.
This is a way of encapsulating sets of global variables and devices into objects so that no conflicts can occur in the global namespace.
Some of my larger examples could benefit from this
This is not quite Singleton but one way to do it is create a class whose members are all static. Then it can be instantiated anywhere access is needed.
An object of this class has no body of its own but provides access to the static properties and methods shared with all the others.
I mention it here because it is simpler and faster than using a conventional singleton.
'====================
class SharedObject
'====================
'
'
static sys a,b,c
'
'MORE STATIC PROPERTIES HERE
'
'
'ACCESSOR METHODS HERE (getters and setters)
'
end class
SharedObject u
SharedObject w
u.c=42
print w.c
Charles