Re: Bind Module for Perl



On 31.12.2010 13:38, Jens Luedicke wrote:
use Class::Bind;
$button->signal_connect(clicked =>  bind(\*MyWindow::callback, $self,
_1, _2, _3));

This syntax will of course have to compete with closures:

$button->signal_connect(clicked => sub { $self->callback(@_[0,1,2]) });



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]