Posted on reefknot-users by Ennui:
If a VEVENT is specified by a duration then
->dtend doesn't work and
vice versa. It would be nice if these were set
properly. I know methods
can't be attached because of the use of MethodMapper
and would confuse
the writing out of an event if both are defined, but it
would be very
useful to not have to program checks into your code.
Just a heads up to see if anyone has a good
Logged In: YES
user_id=1366
It is perfectly possible to define a method with a name that
is in the map. MethodMapper uses an AUTOLOAD function to
pretend it has all the functions in the map, and AUTOLOAD
doesn't get called unless the method couldn't be found in
the class or any of its ancestors. so you could have sub
description { my ($self, $key, $value) = @_; if (defined
$value) { print STDERR "setting description"; $self->set
($key, $value); } else { my ($p, $file, $line) = caller;
return $self->get ($key, $file, $line); } (hope this comes
out ok) That would get you the exact same behaviour as
without the sub, except now it prints to STDERR each time
you set the description.