Re: Bind Module for Perl
- From: Torsten Schoenfeld <kaffeetisch gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: Bind Module for Perl
- Date: Fri, 31 Dec 2010 14:09:05 +0100
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]