Re: PIKE_MODULE_INIT/EXIT in a normal pgsql.pike file

Martin Bähr <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
Excerpts from Stephen R. van den Berg's message of 2014-10-23 01:34:49 +0200:
> In hindsight it might be obvious, but I have to admit that part of this
> confusion is because the Pike documentation regarding what the
> difference is between *.pike, *.pmod and module.pmod files and where
> they are searched for is insufficiently easy to digest.

i always just reduce it to this:

*.pike is a class, and i need to instantiate it to get an object.
*.pmod is an object, so when accessed it is always the same, aka a singleton,
so whatever is in the pmod is globally accessible.

the inside of both kind of objects is the same. whatever you can put in a
*.pike object, can also go into a *.pmod.

greetings, martin.

-- 
eKita                   -   the online platform for your entire academic life
-- 
chief engineer                                                       eKita.co
pike programmer      pike.lysator.liu.se    caudium.net     societyserver.org
BLUG secretary                                                 beijinglug.org
foresight developer  foresightlinux.org                            realss.com
unix sysadmin
Martin Bähr          working in china        http://societyserver.org/mbaehr/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.