Sponsoring The Perl Toolchain Summit 2025: Help make this important event another success Learn more

# [[[ HEADER ]]]
use strict;
our $VERSION = 0.011_000;
# [[[ OO INHERITANCE ]]]
# [[[ CRITICS ]]]
## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator
## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils
## no critic qw(Capitalization ProhibitMultiplePackages ProhibitReusedNames) # SYSTEM DEFAULT 3: allow multiple & lower case & mixed-case package names
# [[[ OO PROPERTIES ]]]
our hashref $properties = {};
# [[[ SUBROUTINES & OO METHODS ]]]
# [ INHERITANCE TESTING ]
sub inherited_Sort {
{ my void::method $RETURN_TYPE };
( my RPerl::Algorithm::Sort $self, my string $person ) = @ARG;
RPerl::diag( 'in PERLOPS_PERLTYPES Sort->inherited_Sort(), have ::class($self) = ' . ::class($self) . ' and $person = ' . $person . ', FISH' . "\n" );
return;
}
sub inherited_Sort_foo_get {
{ my string::method $RETURN_TYPE };
( my RPerl::Algorithm::Sort $self ) = @ARG;
RPerl::diag( 'in PERLOPS_PERLTYPES Sort->inherited_Sort_foo_get(), have ::class($self) = ' . ::class($self) . ', FISH' . "\n" );
return $self->{foo};
}
sub inherited_Sort_foo_set {
{ my void::method $RETURN_TYPE };
( my RPerl::Algorithm::Sort $self, my string $foo_new ) = @ARG;
RPerl::diag( 'in PERLOPS_PERLTYPES Sort->inherited_Sort_foo_set(), have ::class($self) = ' . ::class($self) . ' and $foo_new = ' . $foo_new . ', FISH' . "\n" );
$self->{foo} = $foo_new;
return;
}
#sub inherited {
# { my void::method $RETURN_TYPE };
# ( my RPerl::Algorithm::Sort $self, my string $person) = @ARG;
# RPerl::diag( 'in PERLOPS_PERLTYPES Sort->inherited(), have ::class($self) = ' . ::class($self) . ' and $person = ' . $person . ', IN' . "\n" );
# return;
#}
sub uninherited_Sort {
{ my string $RETURN_TYPE };
( my string $person ) = @ARG;
RPerl::diag( 'in PERLOPS_PERLTYPES Sort::uninherited_Sort(), received $person = ' . $person . ', MY' . "\n" );
return 'Sort::uninherited_Sort() RULES! PERLOPS_PERLTYPES';
}
#sub uninherited {
# { my string $RETURN_TYPE };
# ( my string $person ) = @ARG;
# RPerl::diag('in PERLOPS_PERLTYPES Sort::uninherited(), received $person = ' . $person . ', TROUSERS' . "\n");
# return 'Sort::uninherited() ROCKS! PERLOPS_PERLTYPES';
#}
1; # end of class
# DISABLED
# all of the following happen before the INIT block, and thus rely upon AUTOLOAD
#RPerl::diag("WAZZUP FROM Sort.pm\n");
#inherited('FAKESELF', "Spidey");
#RPerl::Algorithm::Sort::inherited("FAKECLASS", "Peter Parker");
#RPerl::Algorithm::Sort->inherited("Mary Jane");
# pre-INIT AUTOLOAD resolution below only works with Perl, not Inline::CPP
#uninherited('Doc Oc');
#RPerl::Algorithm::Sort::uninherited("Doctor Octavius");
#RPerl::Algorithm::Sort->uninherited("Mad Scientist"); # ignores "Mad Scientist"
#RPerl::diag("LATERZ FROM Sort.pm\n");