Branch: Tag:

2000-08-06

2000-08-06 19:54:26 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

bugfixes; also added so time objects *can* be compared to anything for lazy-sorts

Rev: lib/modules/Calendar.pmod/Event.pmod:1.3
Rev: lib/modules/Calendar.pmod/TimeRanges.pmod:1.4
Rev: lib/modules/Calendar.pmod/YMD.pmod:1.6

500:   // virtual, default    array(int(-1..1)) _compare(TimeRange what)    { -  if (what->is_supertimerange) +  if (objectp(what) && what->is_supertimerange)    {    array(int(-1..1)) cmp=what->_compare(this_object());   
509:    -cmp[1],    -cmp[3]});    } -  error("_compare: incompatible classes %O <-> %O\n", -  object_program(this_object()),object_program(what)); +  return ({-1,-1,-1,-1}); + // error("_compare: incompatible classes %O <-> %O\n", + // object_program(this_object()),object_program(what));    }       string _describe_compare(array(int(-1..1)) c,TimeRange a,TimeRange b)