Branch: Tag:

2006-01-13

2006-01-13 15:57:20 by Henrik Grubbström (Grubba) <grubba@grubba.org>

lfun::`==() MUST handle any value as input!

Rev: lib/modules/Calendar.pmod/TimeRanges.pmod:1.31

1:   //! module Calendar    - // $Id: TimeRanges.pmod,v 1.30 2006/01/11 19:22:30 mbaehr Exp $ + // $Id: TimeRanges.pmod,v 1.31 2006/01/13 15:57:20 grubba Exp $      #pike __REAL_VERSION__   
678:   //! _equal is not currently possible to overload,   //! due to weird bugs, so equal uses `== for now.    -  int(0..1) `==(TimeRange what) +  int(0..1) `==(mixed what)    { -  return what->ruleset()==ruleset() && equals(what); +  return objectp(what) && functionp(what->ruleset) && +  what->ruleset()==ruleset() && equals(what);    }       int __hash();