Skip Menu |
 

This queue is for tickets about the Date-Simple CPAN distribution.

Report information
The Basics
Id: 32250
Status: new
Priority: 0/
Queue: Date-Simple

People
Owner: izut [...] cpan.org
Requestors: CLAESJAC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.02
Fixed in: (no value)

Attachments


Subject: Subclassing issues with method "today"
Download (untitled) / with headers
text/plain 306b
The method "today" (and "d8" and "ymd") blesses the returned object into the superclass and not my derived class. The work around is to redefine them as done in ::ISO etc but that makes them use the internal API which is not quite so nice to have to do. The attached file shows the bug. Cheers, Claes
Subject: date_simple_iso_subclass.pl
#!/usr/bin/perl package FooDate; use base qw(Date::Simple::ISO); my $v = FooDate->today; print ref $v, "\n"; # Should print FooDate but prints Date::Simple::ISO


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.