On Wed, Jan 15, 2003 at 03:34:32PM -0600, Dave Rolsky wrote:
> > > Another side note on recurrence:  we will allow people to specify
> > > recurring datetime generators via callbacks.  For what I hope are obvious
> > > reasons, callbacks will have to guarantee that given a datetime X, they
> > > always produce a datetime >X _or_ <X.  If it were both, there'd be no way
> > > to check whether Y was a member of an unbounded set.  This will be a big
> > > fat warning in the docs.
> >
> > Or you could specify that all generated times that are beyond the
> > bounds are mapped to the appropriate endpoint.  Still, caveat
> > scriptor.
> 
> Come again?  I don't undestand what you're suggesting

Oh, I guess I was misunderstanding you.  After reading again, I think
you're saying that the generators should generate strictly increasing or
strictly decreasing datetimes.

> The callbacks will work like this:
> 
>  sub generate_each_saturday
>  {
>      my $dt = shift; # highest date current known to be in set

Here's the part I was having trouble with ... why the highest date?
But I guess the directionality of the generator determines what gets
passed to the generator?  If it's generating backwards in time it
would be given the lowest date?

-Scott
-- 
Jonathan Scott Duff
[EMAIL PROTECTED]

Reply via email to