pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:379:      /*! @decl void lfun::create(zero ... args)    *!    *! 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: +  *! This function can be created implicitly +  *! by the compiler using the syntax:    *! @code    *! class Foo(int foo) {    *! int bar;    *! }    *! @endcode    *! In the above case an implicit @[lfun::create()] is created, and    *! it's equvivalent to:    *! @code    *! class Foo {    *! int foo;
pike.git/src/program.c:511:    *!    *! @note    *! When the garbage collector calls @[lfun::destroy], all accessible    *! non-objects and objects without @expr{destroy@} functions are    *! still intact. They are not freed if the @expr{destroy@} function    *! adds external references to them. However, all objects with    *! @[lfun::destroy] in the cycle are already scheduled for    *! destruction and will therefore be destroyed even if external    *! references are added to them.    *! -  *! @note -  *! The garbage collector had completely random destruct order in -  *! versions prior to 7.2. -  *! +     *! @seealso    *! @[lfun::create()], @[predef::destruct()]    */      /*! @decl mixed lfun::`+(zero arg, zero ... rest)    *!    *! Left side addition/concatenation callback.    *!    *! This is used by @[predef::`+]. It's called with any arguments    *! that follow this object in the argument list of the call to