Pike v8.1 release 6

Method lfun::create()


Method create

void lfun:create(zero ... args)

Description

Object creation callback.

This function is called right after lfun::__INIT().

args are the arguments passed when the program was called.

Note

This function can be created implicitly by the compiler using the syntax:

class Foo(int foo) {
  int bar;
}

In the above case an implicit lfun::create() is created, and it's equvivalent to:

class Foo {
  int foo;
  int bar;
  protected void create(int foo)
  {
    local::foo = foo;
  }
}
See also

lfun::__INIT(), lfun::destroy()