subclassable. The aliasing means that subclasses need to reimplement
the methods created by the alias, because they end up referring to the
code reference of the method in this class, as opposed to calling it
by name.
return $sub;
}
-*generate_reader_method = \&generate_reader_method_inline;
-*generate_writer_method = \&generate_writer_method_inline;
-*generate_accessor_method = \&generate_accessor_method_inline;
+sub generate_reader_method { shift->generate_reader_method_inline(@_) }
+sub generate_writer_method { shift->generate_writer_method_inline(@_) }
+sub generate_accessor_method { shift->generate_accessor_method_inline(@_) }
sub _inline_pre_body { '' }
sub _inline_post_body { '' }
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
-=cut
\ No newline at end of file
+=cut