Skip Menu |
 

This queue is for tickets about the Net-Daemon CPAN distribution.

Report information
The Basics
Id: 70890
Status: new
Priority: 0/
Queue: Net-Daemon

People
Owner: Nobody in particular
Requestors: pjotrekse [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.48
Fixed in: (no value)



Subject: Demo-code (partially) non-functional
Download (untitled) / with headers
text/plain 653b
Demo code : sub new ($$;$) { my($class, $attr, $args) = @_; my($self) = $class->SUPER::new($attr, $args); if ($self->{'parent'}) { # Called via Clone() ... will never work, as a cloned instance never passes the 'new' function. Inserting print statements in Net::Daemon methods 'new', 'Clone' and 'Run', and in subclass' 'new' and 'Run' methods prove that no 'new' method is passed by instances made with 'Clone'. Suggestion: Make a method i.e. 'initiate-clone', that is called before 'Run', and that can be overridden in the subclass to perform necessary initiation, that is now non-functional in the demo-code.


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.