Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
lfun::

Method lfun::create()


Method create

void lfun:(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

In Pike 7.2 and later this function can be created implicitly by the compiler using the new 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()