Liste des Groupes | Revenir à cl c++ |
On Sun, 30 Mar 2025 16:23:33 +0000, Muttley wrote:
>On Sun, 30 Mar 2025 16:17:04 GMT Mr Flibble <flibble@reddwarf.jmc.corp>>
wibbled:On Sun, 30 Mar 2025 16:09:38 +0000, Muttley wrote:You're entitled to your opinion. I tend to use a few global objects,>
often singletons that contain most of the code. Having them global
means I don't have to pass a reference into every damn function in one
object that requires the other object.
Singletons don't have to be global objects if you use the Meyers
Singleton pattern.
Never heard of it and don't particularly care. I write code to solve
problems,
not to subscribe to whatever structural paradigm is flavour of the
month.
The Meyers Singleton pattern has been around for decades, it certainly is
not "flavour of the month" and your ignorance of it is quite noobish - it
is the standard way of avoiding the global variable initialisation order
fiasco.
Les messages affichés proviennent d'usenet.