'DeclareTest', 'method', DECLARE_PACKAGE | DECLARE_PROTO,
sub {
my ($name, $proto) = @_;
-no warnings 'uninitialized';
-warn "NP: ".join(', ', @_)."\n";
+#no warnings 'uninitialized';
+#warn "NP: ".join(', ', @_)."\n";
return 'my $self = shift;' unless defined $proto && $proto ne '@_';
return 'my ($self'.(length $proto ? ", ${proto}" : "").') = @_;';
},
sub {
my ($name, $proto, $sub, @rest) = @_;
-no warnings 'uninitialized';
-warn "NPS: ".join(', ', @_)."\n";
+#no warnings 'uninitialized';
+#warn "NPS: ".join(', ', @_)."\n";
if (defined $name && length $name) {
unless ($name =~ /::/) {
$name = "DeclareTest::${name}";
return (ref $self).': Foo: '.$foo;
};
- method upgrade () {
+ method upgrade(){ # no spaces to make case pathological
bless($self, 'DeclareTest2');
};
is($o->$test_method2('this'), 'DeclareTest2, this', 'anon method with proto ok');
-warn map { $_->() } @test_list;
+#warn map { $_->() } @test_list;