develooper Front page | perl.perl5.porters | Postings from January 2012

Re: [perl #108470] Term::ReadLine should use AE instead of Tk forevent looping

From:
Paul LeoNerd Evans
Date:
January 19, 2012 08:36
Subject:
Re: [perl #108470] Term::ReadLine should use AE instead of Tk forevent looping
Message ID:
20120119163602.GC25615@cel.leo
On Thu, Jan 19, 2012 at 07:06:11AM +0100, Konovalov, Vadim (Vadim)** CTR ** wrote:
> > From: Darin McBride 
> 
> > today, T::RL supports 
> > one event loop.  With this patch, it will support *most* 
> > event loops available 
> > in Perl.  And any that aren't supported could potentially be 
> > added to AE 
> > without having to maintain T::RL's event support, benefiting 
> > not just T::RL, 
> > but any other AE-based module.
> 
> what most event loops it do support?
> Gtk? Tcl? Qt?
> 
> Actually, when looking into ./lib/Term/ReadLine.pm and seeking
> for "tk" I found inside 
>   package Term::ReadLine::Tk;
> 
> IMO this should not be there - you support your favourite GUI but 
> not mine.
> 
> This Term::ReadLine::Tk should be on CPAN and not in the CORE.
> This small group of users of Term::ReadLine::Tk will find it on CPAN.

+1

This has no business in core's Term::ReadLine. Anyone who wants
integration with their favourite event loop of choice can go to CPAN and
install Term::ReadLine::AnyEvent, Term::ReadLine::IOAsync,
Term::ReadLine::POE, Term::ReadLine::Reflex, Term::ReadLine::Tk, ...

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk
ICQ# 4135350       |  Registered Linux# 179460
http://www.leonerd.org.uk/



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About