Design patterns in Omnis - Singleton
pmulroney at logicaldevelopments.com.au
Tue Feb 7 01:24:46 UTC 2023
As part of our ongoing training for our developers, we're starting to look into various common design patterns. The first one we wanted to look at was the Singleton Pattern. We wanted to see if we could create the pattern in Omnis so that when future designs call for such a pattern we could draw on our existing knowledge. See https://en.wikipedia.org/wiki/Singleton_pattern for an example of a Singleton pattern. Basically, it's a way to guarantee just one instance of an object exists.
We wanted to see if we could setup such a pattern in Omnis.
Has anything ever thought of doing this? How did you implement it?
I'm thinking that if we have a "best practice" we could then work on other Design Patterns in Omnis and make them available to the community.
An invisible man married an invisible woman. The kids were nothing to look at either.
Paul W. Mulroney We Don't Do Simple Pty Ltd
pmulroney at logicaldevelopments.com.au Trading as Logical Developments
www.logicaldevelopments.com.au ACN 161 009 374
Ph: +61 8 9458 3889 86 Coolgardie Street
BENTLEY WA 6102
More information about the omnisdev-en