-Original Message-
From: Rick Measham [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 23, 2006 8:13 PM
To: Garrett, Philip (MAN-Corporate)
Cc: datetime@perl.org
Subject: Re: from_epoch for DateTime::LazyInit?
P.S. if you want to run benchmarking on the overloading, and it shows
-Original Message-
From: Garrett, Philip (MAN-Corporate)
[mailto:[EMAIL PROTECTED]
Sent: Sunday, April 23, 2006 12:00 AM
To: datetime@perl.org
Subject: RE: from_epoch for DateTime::LazyInit?
-Original Message-
From: Rick Measham [mailto:[EMAIL PROTECTED]
Sent
-Original Message-
From: Garrett, Philip (MAN-Corporate)
Sent: Saturday, April 22, 2006 10:51 PM
To: datetime@perl.org
Subject: RE: from_epoch for DateTime::LazyInit?
-Original Message-
From: Garrett, Philip (MAN-Corporate)
Sent: Saturday, April 22, 2006 6:56 PM
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 (
--
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
Garrett, Philip (MAN-Corporate) wrote:
I'm just trying to make the DT::LI object act like a DT. Isn't that the idea?
The idea is to allow quick creation of DT objects .. mainly for the
purpose of creating thousands of DT object that lazily inflate to
full-blown DateTime objects. It would be
On Mon, 24 Apr 2006, Rick Measham wrote:
P.S. if you want to run benchmarking on the overloading, and it shows that it
doesn't increase load or creation time(span) of DT:LI objects I'm willing to
reconsider, but I'm a bit loathe :)
I'd be very surprised if declaring overloading had any
-Original Message-
From: Garrett, Philip (MAN-Corporate)
[mailto:[EMAIL PROTECTED]
Sent: Saturday, April 22, 2006 6:56 PM
To: datetime@perl.org
Subject: RE: from_epoch for DateTime::LazyInit?
-Original Message-
From: Rick Measham [mailto:[EMAIL PROTECTED]
Sent
Garrett, Philip (MAN-Corporate) wrote:
Whoops, the patch I sent earlier is botched. This one should be better.
One thing I forgot was to update the POD -- I'll try to get that later.
Thanks Philip,
I'd already noticed it wasn't working and fixed it .. :)
I also added an overloadable class
-Original Message-
From: Rick Measham [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 22, 2006 11:16 PM
To: Garrett, Philip (MAN-Corporate)
Cc: datetime@perl.org
Subject: Re: from_epoch for DateTime::LazyInit?
Garrett, Philip (MAN-Corporate) wrote:
Whoops, the patch I sent
Hi list.
Are there any plans to add a from_epoch constructor for
DateTime::LazyInit? The module looks really useful for me, but since I
create almost all my DateTime objects from epoch times, I can't use it.
Philip
Garrett, Philip (MAN-Corporate) wrote:
Are there any plans to add a from_epoch constructor for
DateTime::LazyInit? The module looks really useful for me, but since I
create almost all my DateTime objects from epoch times, I can't use it.
No plans at all .. but if you provide a patch
12 matches
Mail list logo