[Kde-perl] Signals & Slots
Bryan LeBeau
bryan.lebeau at sbcglobal.net
Thu Jun 5 18:05:30 CEST 2003
Ashly/Germain et al...
The new signal/slot syntax is _perfect_ :)
I've been playing around with PerlQt for a few months now and I want to say you guys did a really awsome job. It works beautifully and constistently. (Also, thanks to TrollTech's great documentation online)
I've been searching for a good toolkit that works with Perl and I've found it!!
Thank you..
-Bryan Lebeau
Le Jeudi 05 Juin 2003 23:19, Germain Garand a écrit :> I implemented> sub foo : signal( int )> rather than> sub foo : signal( foo( int ) )BTW, the old/alternative syntax is still perfectly valid of course.Eventually, one could even use both redundantly to make the declaration perfectly clear:e.g:package Mine;use Qt;use Qt::isa qw( Qt::PushButton );use Qt::slots 'foo' => [];[ ... 10 kilo lines ... ]sub foo : slot(){ ...}this would need some extra code to check for conflicting declarations and if so, decide something ( probably to die )Otherwise, I was wondering wether the uppercase form sub foo : SLOT( int )wouldn't be even clearer, has it answers in an obvious way to the connect() syntax?Noisy though.Germain_______________________________________________Kde-perl mailing listKde-perl at mail.kde.orghttp://mail.kde.org/mailman/listinfo/kde-perl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-perl/attachments/20030605/4122736a/attachment.htm
More information about the Kde-perl
mailing list