[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issues when func name is the same with an alias
From: |
Eric Blake |
Subject: |
Re: Issues when func name is the same with an alias |
Date: |
Wed, 04 Aug 2010 07:13:05 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.1.1 |
On 08/04/2010 05:03 AM, Marc Herbert wrote:
> Le 04/08/2010 11:39, Clark J. Wang a écrit :
>
>> Seems like I must explicitly use the `function' keyword to define foo() for
>> this scenario. Is that the correct behavior?
>
> The correct behaviour is simply not to use aliases, since they bring nothing
> to the table compared to functions.
Not _quite_ true - there are a few things aliases can do that functions
cannot, and when combined, you can get some cool interactive effects
(although I don't recommend relying on this in scripts):
http://www.chiark.greenend.org.uk/~sgtatham/aliases.html
--
Eric Blake eblake@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Issues when func name is the same with an alias, Clark J. Wang, 2010/08/04
- Re: Issues when func name is the same with an alias, Marc Herbert, 2010/08/04
- Re: Issues when func name is the same with an alias,
Eric Blake <=
- Re: Issues when func name is the same with an alias, Clark J. Wang, 2010/08/04
- Re: Issues when func name is the same with an alias, Marc Herbert, 2010/08/05
- Re: Issues when func name is the same with an alias, Clark J. Wang, 2010/08/05
- Re: Issues when func name is the same with an alias, Chris F.A. Johnson, 2010/08/05
- Re: Issues when func name is the same with an alias, Clark J. Wang, 2010/08/05
- Re: Issues when func name is the same with an alias, Marc Herbert, 2010/08/06
Re: Issues when func name is the same with an alias, Bernd Eggink, 2010/08/04