pike.git / lib / modules / Function.pmod

version» Context lines:

pike.git/lib/modules/Function.pmod:194:    for(int i; i<sizeof(f); i++)    args = f[-i-1](args);    return args;    };   }         //! @module Placeholder   //!   //! Placeholder arguments for Function.bind +  + //! @ignore   object Placeholder = class   { -  + //! @endignore +     class Base    {    constant _is_placeholder = true;    //! @decl mixed value(bind x, array args);    //!    //! The function that is called to return the argument value.    }       class Arg(int num)    //! Arg(x) returns the value of argument X
pike.git/lib/modules/Function.pmod:318:    private mapping _cache = ([]);    mixed `[](string name)    {    if( _cache[name] )    return _cache[name];    mixed tmp;    if(sscanf(name, "arg%d", tmp) || sscanf(name, "_%d", tmp))    return _cache[name] = Arg(tmp);    return ::`[](name);    }; + //! @ignore   }(); -  + //! @endignore    -  + //! @endmodule    -  +