pike.git / lib / modules / ADT.pmod / Stack.pike

version» Context lines:

pike.git/lib/modules/ADT.pmod/Stack.pike:134:   //! A stack added with another stack yields a third   //! a third stack will all the stack elements from   //! the two first stacks.   this_program `+(this_program s) {    array elem = arr[..ptr-1]+values(s);    this_program ns = this_program(1);    ns->set_stack(elem);    return ns;   }    - mixed cast(string to) { + protected mixed cast(string to) {    switch(to) {    case "array":    return _values();    default: -  error("Cannot cast to %s.\n", to); +  return UNDEFINED;    }   }      string _sprintf(int t) {    return t=='O' && sprintf("%O%O", this_program, _values());   }