pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:2167:    resolv_debug ("dirnode(%O)->ind(%O) => not found in module\n",    dirname, index);    }    else    resolv_debug ("dirnode(%O)->ind(%O) => no module\n", dirname, index);       DEC_RESOLV_MSG_DEPTH();    return low_ind(index);    }    +  protected mixed `[]=(string index, mixed value) +  { +  if(module && has_index(module, index)) +  return module[index]=value,cache[index]=value; +  error("No such variable (%s) in object.\n", index); +  } +     protected mixed `[](string index)    {    mixed ret;   #ifdef MODULE_TRACE    werror("%*nDirnode(%O) cache[%O] ?????\n",    sizeof(backtrace()),dirname,index);   #endif    if(!undefinedp(ret=cache[index]))    {   #ifdef MODULE_TRACE
pike.git/lib/master.pike.in:2395:    name && !has_value (name, "|") &&    (name == "predef::" ? index : name + "." + index));    }       DEC_RESOLV_MSG_DEPTH();    resolv_debug ("joinnode(%O)->ind(%O) => not found. Trying fallback %O\n",    joined_modules, index, fallback_module);    return fallback_module[index];    }    +  protected mixed `[]=(string index, mixed value) +  { +  foreach(joined_modules, object|mapping o) +  if(has_index(o, index)) +  return o[index]=value,cache[index]=value; +  error("No such variable (%s) in object.\n", index); +  } +     protected mixed `[](string index)    {    mixed ret;    if (!undefinedp(ret = cache[index])) {    if (ret != ZERO_TYPE) {    return ret;    }    return UNDEFINED;    }    ret = ind(index);