p5-Mouse
p5-Mouse copied to clipboard
Lightweight class builder for Perl, as a subset of Moose
By reading https://metacpan.org/pod/Mouse::Util::TypeConstraints documentation i felt into the trap and spent good amount of time trying to figure out why following code is not working: ```perl package A; use Mouse;...
Similar to https://github.com/xslate/p5-Mouse/issues/64 Tested environments. - Ubuntu 20.04 (x86_64), Perl v5.34.0 (v5.30.0) - Ubuntu 16.04 (x86_64), Perl v5.22.1 - macOS 11.6 (m1), Perl 5.34.0 (5.32.1 File:cpanfile ```perl requires 'Mouse', '==2.5.10';...
method modifiers for overrided attribute's accessors(reader/writer/accessor) are not executed when I try to use method modifiers in child class for that. ```perl #!/usr/bin/env perl { package My; use Mouse; has...
In Mouse::Meta::Method::Constructor, the `_generate_initialize_object` method generates a coderef by evaluating a string like: ``` package %s; sub { my($meta, $instance, $args, $is_cloning) = @_; %s; return $instance; } ``` Where...
It seems like Mouse is not adding methods for attributes with unicode names though I can't find any limitations that would prevent it. ```perl use strict; use warnings; use utf8;...
This PR is basically a port of [the issue #8 in Type::Tiny::XS repo][1] as well as [PR #9][2] to Mouse::XS. The newly added test file includes the fail test cases...
This is related to #103, but a bit more cases. Considering the following test program, running with perl 5.28.1, Mouse v2.5.9. The test program take each strings from `@ARGV` as...
In Moose ``` perl package Foo { use Moose; has hello => ( is => 'ro' ); sub hello { } } ``` => You are overwriting a locally defined...