[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Update Automake::Variable::variables to agree with its docum
From: |
Alexandre Duret-Lutz |
Subject: |
Re: [PATCH] Update Automake::Variable::variables to agree with its documentation |
Date: |
Sat, 2 Aug 2003 01:29:54 +0200 |
On Fri, Aug 01, 2003 at 04:30:52PM -0500, Raja R Harinath wrote:
> Index: ChangeLog
> from Raja R Harinath <address@hidden>
>
> * lib/Automake/Variables.pm (variables): Return a list of
> Automake::Variable instances, not a list of strings.
> (dump): Remove support for being invoked with a string.
> (variables_dump): Adapt to these changes.
> * automake.in (check_typos): Likewise.
> (am_primary_prefixes): Likewise.
Excellent! Please install.
> - foreach my $var (sort variables)
> + foreach my $var (sort { $a->name cmp $b->name } variables)
Do you know if Perl allows one to setup default comparison function
for a class (I'm thinking about an equivalent of Python's __cmp__
method)?