On 05/13/2010 03:48 AM, Herbert Liechti wrote:
2010/5/13 Sean Robinson<sean.robin...@sccmail.maricopa.edu>

  I am attempting to track individual spans by tagging a span.  My first
procedure has been to subclass DateTime::Span and add an instance var to
hold the tag.  But when I submit the tagged Span to SpanSet, the Span listed
in the SpanSet is a DateTime::Span object, not my subclass.

  How can my DateTime::Span subclass objects be stored and used in
DateTime::SpanSet?


I had the same problem some time ago. I found no really good solution. I
made the external reference (or tag) after creating the Span directly in the
object, all other attempts are (afaik) not working. A solution for this
would be a big plus in future versions.


I looked into this more, I see that all Spans and SpanSets end up part of a Set::Infinite and lose their identity along the way. I tried adding tags to Set::* and found that didn't work because there is one set and only one set (and it's infinite 8-). So, I need to rethink my approach.

Has anyone used DateTime and friends to find scheduling conflicts and been able to identify the offending events without walking a list of Spans?

--
Sean Robinson
Laboratory Technician
Physics Astronomy Geology
sean.robin...@sccmail.maricopa.edu

Reply via email to