pike.git
/
src
/
program.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/program.c:353:
*! *! @note *! 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:
+
*! it's
equivalent
to:
*! @code *! class Foo { *! int foo; *! int bar; *! protected void create(int foo) *! { *! this::foo = foo; *! } *! } *! @endcode
pike.git/src/program.c:832:
*! *! @seealso *! @[predef::`>()] */ /*! @decl int lfun::__hash() *! *! Hashing callback. *! *! The main caller of this function is @[predef::hash_value()]
-
*! or the low-level
equvivalent
, which get called by various
+
*! or the low-level
equivalent
, which get called by various
*! mapping operations when the object is used as index in a mapping. *! *! @returns *! It should return an integer that corresponds to the object *! in such a way that all values which @[lfun::`==] considers *! equal to the object get the same hash value. *! *! @note *! The function @[predef::hash] does not return hash values that *! are compatible with this one.