Home

On Aug 6, 1:09 am, Jerry Coffin <jcof...@taeus.com> wrote:
> In article <5hn0poF3jvqe...@mid.individual.net>, ian-n...@hotmail.com
> says...

> [ ... ]
>
> > > if(initialize(hin)){
> > > if(!engine::gengine()->init(CmdShow)){return false;}

> > This would be a syntax error, you have declared "pengine" as a pointer
> > and here you are attempting to invoke operation () on it.

> I don't see where it's used pengine at all. The only use of
> operator() that I see is on whatever genengine() returns --
> and he hasn't shown us that at all.

The only use of () is on engine::gengine, and on the init
later. It's just a guess, but could pengine and gengine mean
pointer to engine and get engine? He did show that pengine was
static, and the syntax above suggests that gengine is a static
function. All in all, this looks like some variant of the
singleton idiom, but with very non-standard names.

--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

previous
next

Re: strange behavious of the logging module?
Re: understanding of data abstraction, information hiding and encapsulation
Re: Urgent!!! UPGRADE METHODOLOGY
Re: Organizing Code - Packages
Re: How would I go about making a file open. Not the way you mightthink.
Krwinka
Niechciane i Zapomniane
Mam Marzenie
Kidprotect
Nasze Dzieci