Branch: Tag:

2001-01-23

2001-01-23 05:11:11 by Johan Sundström <oyasumi@gmail.com>

Added a _sprintf("%t") and some method existence refdoc markers.

Rev: lib/modules/Geography.pmod/Position.pike:1.7

377:    error("can't cast to %O\n",to);   }    + //!   int __hash()   {    return (int)(lat*3600000+long*3600000);   }    -  + //!   int `==(object pos)   {    return (pos->lat==lat && pos->long==long);   }    -  + //!   int `<(object pos)   {    if (pos->lat>lat) return 1;
394:    return 0;   }    + //!   int `>(object pos)   {    if (pos->lat<lat) return 1;
401:    return 0;   }    - string _sprintf(int t) + //! + string _sprintf(int|void t)   { -  if (t=='O') -  return "Position("+latitude()+", "+longitude()+")"; +  switch(t) +  { +  case 't': return "Geography.Position"; +  case 'O': return "Position("+latitude()+", "+longitude()+")"; +  }    return 0;   }