Re: DateTime::Set - Number of elements in set

2003-09-04 Thread Rick Measham
Flavio S. Glock wrote: Sets of type 4 are 'huge sets'. These have an 'unknown' count. The count can be thousands or even millions of dates, but it is not infinite. - or two or three - Before version 0.10, you would run out of memory if you specified something like all seconds in the century.

Re: DateTime::Set - Number of elements in set

2003-09-04 Thread Flavio S. Glock
Rick Measham wrote: Flavio S. Glock wrote: Sets of type 4 are 'huge sets'. These have an 'unknown' count. The count can be thousands or even millions of dates, but it is not infinite. - or two or three - Two or three are ok :) Before version 0.10, you would run out of memory if you

Re: DateTime::Set - Number of elements in set

2003-09-04 Thread Dave Rolsky
On Tue, 3 Sep 2003, Rick Measham wrote: ALSO If we go this path or not, I'd prefer not to get plain undef back. I'd like an indication that it was 'too hard to count', or that it was 'over 10,000'. But undef means unknown, and if we can't count, we don't know how many elements are in the set.

Re: DateTime::Set - Number of elements in set

2003-09-02 Thread Flavio S. Glock
Dave Rolsky wrote: On Tue, 19 Aug 2003, Flavio S. Glock wrote: There are some cases when we don't know if a recurrence has any event at all. This may happen when you do an intersection of recurrences. Otherwise, if they don't have a start and end, they are infinite, right?

Re: DateTime::Set - Number of elements in set

2003-09-02 Thread Dave Rolsky
On Tue, 2 Sep 2003, Flavio S. Glock wrote: If we want to document and specify that this is an error, then the size should be infinite. Otherwise, if we might want to allow this in the future, undef is correct. I don't feel too terribly strongly either way. Ok. So let's document that it

Re: DateTime::Set - Number of elements in set

2003-08-19 Thread Dave Rolsky
On Tue, 19 Aug 2003, Flavio S. Glock wrote: There are some cases when we don't know if a recurrence has any event at all. This may happen when you do an intersection of recurrences. Otherwise, if they don't have a start and end, they are infinite, right? But 'undef' is ok - I'll change that.

DateTime::Set - Number of elements in set

2003-08-17 Thread Rick Measham
Flavio, is there already a method to determine the number of elements in a DateTime::Set? If not, I can currently make it as_list, and then get the length of the list, but it would be cleaner to have a method to do this. Cheers! Rick

Re: DateTime::Set - Number of elements in set

2003-08-17 Thread fglock
Flavio, is there already a method to determine the number of elements in a DateTime::Set? If not, I can currently make it as_list, and then get the length of the list, but it would be cleaner to have a method to do this. What would be a name for this method? There is no accessor yet

Re: DateTime::Set - Number of elements in set

2003-08-17 Thread Flavio Glock
--- Rick Measham [EMAIL PROTECTED] wrote: Flavio, is there already a method to determine the number of elements in a DateTime::Set? If not, I can currently make it as_list, and then get the length of the list, but it would be cleaner to have a method to do this. There is an internal