- Win doy $10 dollars because Sartak didn't think anybody
would document this fast enough (perigrin)
+ * Moose::Exporter
+ - Rename _make_wrapper to _curry_wrapper and fiddle its
+ interface a bit (Sartak)
+
0.79 Wed, May 13, 2009
* Tests
- More fixes for Win32 problems. Reported by Robert Krimen.
return sub {
my $caller = $CALLER;
- my $wrapper = $self->_make_wrapper($caller, $sub, $fq_name);
+ my $wrapper = $self->_curry_wrapper($sub, $fq_name, $caller);
my $sub = subname($fq_name => $wrapper);
};
}
-sub _make_wrapper {
+sub _curry_wrapper {
my $class = shift;
- my $caller = shift;
my $sub = shift;
my $fq_name = shift;
+ my @extra = @_;
- my $wrapper = sub { $sub->($caller, @_) };
+ my $wrapper = sub { $sub->(@extra, @_) };
if (my $proto = prototype $sub) {
# XXX - Perl's prototype sucks. Use & to make set_prototype
- # ignore the fact that we're passing a "provate variable"
+ # ignore the fact that we're passing "private variables"
&Scalar::Util::set_prototype($wrapper, $proto);
}
return $wrapper;