pike.git / lib / modules / Calendar.pmod / TimeRanges.pmod

version» Context lines:

pike.git/lib/modules/Calendar.pmod/TimeRanges.pmod:681:   //! known bugs:   //! _equal is not currently possible to overload,   //! due to weird bugs, so equal uses `== for now.       int(0..1) `==(mixed what)    {    return objectp(what) && functionp(what->ruleset) &&    what->ruleset()==ruleset() && equals(what);    }    -  int __hash(); +  protected int __hash();      // int(0..1) _equal(TimeRange what)   // {   // return equals(what);   // }      //! method TimeRange `&(TimeRange with)   //! Gives the cut on the called time period   //! with another time period. The result is   //! zero if the two periods doesn't overlap.
pike.git/lib/modules/Calendar.pmod/TimeRanges.pmod:1252:    this_program subtract(TimeRange with, mixed ...extra)    {    return this;    }       int(1..1) `!()    {    return 1;    }    +  protected int __hash() +  { +  return 0; +  } +     protected string _sprintf(int t)    {    switch (t)    {    case 'O': return "NullTimeRange";    case 't': return "Calendar."+calendar_name()+".NullTimeRange";    default: return ::_sprintf(t);    }    }   }