Subject: | typo in :Replicate example |
Date: | Thu, 24 Jan 2019 02:29:18 +0000 |
To: | "bug-Object-InsideOut [...] rt.cpan.org" <bug-Object-InsideOut [...] rt.cpan.org> |
From: | "John M. Merchant" <jmerchant [...] protonmail.ch> |
Hello,
I found a small typo in documentation related to the :Replicate subroutine tag in Object::InsideOut 4.05. The example under Object Replication is currently like so:
sub _replicate :Replicate
{
my ($parent, $clone, $flag) = @_;
# Special object replication processing
if ($clone eq 'CLONE') {
# Handling for thread cloning
...
} elsif ($clone eq 'deep') {
# Deep copy of the parent
...
} else {
# Shallow copying
...
}
}
From the surrounding docs it appears that $flag should be tested here against 'CLONE', 'deep', and so on instead of $clone.
Let me also say that I've been using Object::InsideOut for over a decade now and I definitely appreciate your work here!
Best,
-John M. Merchant