Yep, just took a look, and while there's a definition of create() in the cmod file, it's implicitly called as part of the instantiation process of the module (remember that a cmod is equivalent to a pmod file rather than a .pike file). There is an empty class called "foo", so you'd do:

Public.Sample.foo();

Hope this clarifies the situation a bit.

Bill

On Fri, 28 May 2010, Marc Dirix wrote:

On 27-05-10 17:36, Bill Welliver wrote:
You can find a "sample module" in my source repository. It's got
everything you need to create a working module. Just fill in the blanks.
There are also some useful sample modules located in the source repository.

http://hg.welliver.org/pike_modules/


It seems there is something wrong with the sample. If I compile and
install it. I get this output:

object a = Public.Sample();
Cannot call undefined lfun `().

Seems it can't call create.

Any thoughts?

/Marc

Reply via email to