> ----------------------------------------------------------------------
> From: Rick Measham [mailto:[EMAIL PROTECTED]
> Sent: Sun 4/23/2006 6:11 PM
> To: Garrett, Philip (MAN-Corporate)
> Cc: datetime@perl.org
> Subject: Re: from_epoch for DateTime::LazyInit?
> 
> Garrett, Philip (MAN-Corporate) wrote:
> > I also had trouble with the lazyinit module not supporting overloaded
> > operators, e.g. $dt1 > $dt2.
> >
> > To fix, I added this to the main LazyInit package. Using the method
> > names as strings didn't work -- I guess overload doesn't like AUTOLOAD.
> >
> > use overload ( 'fallback' => 1,
> >                '<=>' => sub { shift->_compare_overload(@_) },
> 
> We're really getting way beyond the scope of DT::LI here .. it's
> supposed to be completely simple front-end to creating unvalidated
> DateTime objects.
>
> If you want to do comparisons, use the real functions rather than the
> overloads, or create full DateTime objects.
 
I'm just trying to make the DT::LI object act like a DT.  Isn't that the idea?
 
Philip
 

Reply via email to