No, you got it right, but I think a similar approach can be taken to overload a couple of key points in DT that can preserve the values then re-set them later. I used a sub-routine to do this since I had to call it from more than one constructor.
Jim > -----Original Message----- > From: Boorstein, Daniel B [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 27, 2007 10:14 AM > To: datetime@perl.org > Subject: RE: instance data for DateTime derived classes > Having given it a quick viewing it looks like your new() calls > $_454_allocate->(), which only sets your custom attributes to undef, > rather than preserve their prior values. Have I misread it? Does it do > more than just ensure that the keys exist? > > Thanks, > > - Dan Boorstein >