New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perlmod.pod/CLONESKIP error #7935
Comments
From @nwc10Created by @nwc10perlmod.pod says Perl after 5.7.2 has support for the C<CLONE> This is inaccurate, surely? Nicholas Clark Perl Info
|
From offer.kaye@gmail.comOn 31 May 2005 12:40:39 -0000, via RT Nicholas Clark wrote:
Patch attached. -- |
From offer.kaye@gmail.comperlmod.pod.patch--- perlmod.pod.orig 2005-06-02 08:58:50.000000000 +0300
+++ perlmod.pod 2005-06-02 09:00:46.000000000 +0300
@@ -539,7 +539,7 @@
module or by doing fork() on win32 (fake fork() support). When a
thread is cloned all Perl data is cloned, however non-Perl data cannot
be cloned automatically. Perl after 5.7.2 has support for the C<CLONE>
-and C<CLONE_SKIP> special subroutines. In C<CLONE> you can do whatever
+special subroutine. In C<CLONE> you can do whatever
you need to do,
like for example handle the cloning of non-Perl data, if necessary.
C<CLONE> will be called once as a class method for every package that has it
@@ -552,6 +552,7 @@
If you want to CLONE all objects you will need to keep track of them per
package. This is simply done using a hash and Scalar::Util::weaken().
+Perl after 5.8.7 has support for the C<CLONE_SKIP> special subroutine.
Like C<CLONE>, C<CLONE_SKIP> is called once per package; however, it is
called just before cloning starts, and in the context of the parent
thread. If it returns a true value, then no objects of that class will
|
The RT System itself - Status changed from 'new' to 'open' |
From @rgsOffer Kaye wrote:
Thanks, applied as #24822. |
@rgs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#36047 (status was 'resolved')
Searchable as RT36047$
The text was updated successfully, but these errors were encountered: