Skip to content

Commit bedceca

Browse files
committed
Fixage for curry::weak::_ via the inestimable dakkar
1 parent 640e95b commit bedceca

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Changes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Revision history for curry
22

3+
- Fixage for curry::weak::_ via the inestimable dakkar
4+
35
2.000000 - 2021-12-28
46
- Support curry::_ and curry::weak::_
57

lib/curry.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $curry::weak = sub {
3434
}
3535
};
3636

37-
sub curry::_ { &$curry::weak }
37+
sub curry::weak::_ { &$curry::weak }
3838

3939
sub AUTOLOAD {
4040
my $invocant = shift;

t/curry.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ is_deeply($curry->(1), [ $foo, 1 ], 'Curried weak object call');
4141

4242
my $curry2 = $foo->curry::weak::_('foo');
4343

44-
is_deeply($curry->(1), [ $foo, 1 ], 'Curried weak string method call');
44+
is_deeply($curry2->(1), [ $foo, 1 ], 'Curried weak string method call');
4545

4646
weaken($weak_foo = $foo);
4747

0 commit comments

Comments
 (0)