On Tue, 14 Jan 2003, Martijn van Beers wrote: > On Tue, Jan 14, 2003 at 01:32:39PM -0200, fglock wrote: > > > It should use DateTime as the leaf class, just like Date::Set really > > > should use Date::ICal as the leaf class. > > > > Ok, I'll try to do that. > > > > There is a very important thing to note, however: > > DateTime::Set stores pointers to leaves (of course). > > > > If a DateTime object is a leaf, it should never be changed, > > or it might break something: > > There's a good argument for making all DateTime objects immutable like > some people were arguing before..
No, it's just a good argument for making DateTime::Set call clone on all objects it gets. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/
