Extending Singletons?

BlitzMax Forums/BlitzMax Programming/Extending Singletons?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Gabriel.

You are correct.
The new method not return anything.
Eliminating the line return myInstance and creating one function for get myInstance is possible.
You create a instance initially and it is not recolected for GC. It contains one reference of self.

Bye,
paposo