Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Class-Virtual CPAN distribution.

Report information
The Basics
Id: 6298
Status: resolved
Priority: 0/
Queue: Class-Virtual

People
Owner: Nobody in particular
Requestors: jonasbn [...] cpan.org
Cc:
AdminCc:

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



Subject: Unable to declare sub assert virtual
I experienced this problem with Class::Virtual 0.04 Perl: This is perl, v5.8.1-RC3 built for darwin-thread-multi-2level (with 1 registered patch, see perl -V for more detail) On OS X: Darwin hyperstation.local 7.3.0 Darwin Kernel Version 7.3.0: Fri Mar 5 14:22:55 PST 2004; root:xnu/xnu-517.3.15.obj~4/RELEASE_PPC Power Macintosh powerpc I try to build an abstract class with should defined the function assert as virtual. use base qw(Class::Virtually::Abstract); __PACKAGE__->virtual_methods(qw(init assert proces finish fail)); And I get the following warning: Workflow::Step::Abstract attempted to declare assert() virtual but it appears to already be implemented! at lib/Fresch/MailToCustomer.pm line 8 Apparently the assert method imported into Class::Virtual from Carp::Assert makes some noice. Exchanging assert for Carp::Assert's affirm gives the same result: Workflow::Step::Abstract attempted to declare affirm() virtual but it appears to already be implemented! at lib/Fresch/MailToCustomer.pm line 8 I cannot think of an imidiate work-around, but perhaps it should go in the Caveats section.
[JONASBN - Fri May 14 03:35:10 2004]: Show quoted text
> I try to build an abstract class with should defined the function > assert as virtual. > > use base qw(Class::Virtually::Abstract); > > __PACKAGE__->virtual_methods(qw(init assert proces finish fail)); > > And I get the following warning: > > Workflow::Step::Abstract attempted to declare assert() virtual but it > appears to already be implemented! at lib/Fresch/MailToCustomer.pm > line 8 > > Apparently the assert method imported into Class::Virtual from > Carp::Assert makes some noice.
Fixed. Will be in 0.05.