pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:859:    *! Currently casting between object types is a noop.    *!    *! @note    *! If the returned value is not deemed to be of the requested type    *! a runtime error may be thrown.    *!    *! @note    *! It's assumed that this function is side-effect free.    */    - /*! @decl mixed lfun::`[..](zero low, int low_bound_type, @ -  *! zero high, int high_bound_type) -  *! -  *! Subrange callback. -  *! -  *! @note -  *! It's assumed that this function is side-effect free. -  *! -  *! @seealso -  *! @[predef::`[..]] -  */ -  +    /*! @decl mixed lfun::`[](zero arg1, zero|void arg2)    *!    *! Indexing callback.    *!    *! For compatibility, this is also called to do subranges unless    *! there is a @[`[..]] in the class. See @[predef::`[..]] for    *! details.    *!    *! @note    *! It's assumed that this function is side-effect free.
pike.git/src/program.c:1188:    *! references a specific item contained (in some arbitrary sense)    *! in this one.    *!    *! @note    *! It's assumed that this function is side-effect free.    *!    *! @seealso    *! @[predef::Iterator], @[predef::get_iterator], @[predef::foreach()]    */    + /*! @decl mixed lfun::`[..](zero low, int low_bound_type, @ +  *! zero high, int high_bound_type) +  *! +  *! Subrange callback. +  *! +  *! @note +  *! It's assumed that this function is side-effect free. +  *! +  *! @seealso +  *! @[predef::`[..]] +  */ +  + /**** END TRUE LFUNS ****/ + /**** BEGIN FAKE LFUNS ****/ +    /*! @decl mixed lfun::_search(mixed needle, mixed|void start)    *!    *! Search callback.    *!    *! @seealso    *! @[predef::search()]    */      /*! @decl array lfun::_types(object|void context, int|void access)    *!
pike.git/src/program.c:1300:      /*! @decl mixed lfun::_random()    *! Called by @[random()]. Typical use is when the object implements    *! a ADT, when a call to this lfun should return a random member of    *! the ADT or range implied by the ADT.    *!    *! @seealso    *! @[predef::random()]    */    + /**** END FAKE LFUNS ****/ + /**** BEGIN MAGIC LFUNS ****/ +    /*! @decl mixed lfun::`symbol()    *! @decl mixed lfun::`->symbol()    *!    *! Variable retrieval callback (aka "getter").    *!    *! @note    *! Note that the @expr{symbol@} in the name can be any symbol.    *!    *! @note    *! This is not a true LFUN, since it is even more low level!