I vaguely remember a conversation about this but since there's no search mechanism for this list, I've not had any luck in locating it...
I'm writing a module using CMOD, and I want that cmod to have functions available outside a PIKECLASS definition (or perhaps not even have a PIKECLASS). Can that be done? Can I define INIT blocks for that Module?
Bill
No problem, just use PIKEFUN outside of a class definition and you end up with an new function in your module.
A good example of how this is done, can be found in src/post_modules/Nettle/nettle.cmod. The function crypt_md5() is defined just that way... ;)
pike-devel@lists.lysator.liu.se