[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Allow user-defined functions to override builtins.
From: |
Vladimir 'φ-coder/phcoder' Serbinenko |
Subject: |
Re: [PATCH] Allow user-defined functions to override builtins. |
Date: |
Thu, 22 May 2014 09:31:24 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0 |
On 19.05.2014 08:37, Glenn Washburn wrote:
> Currently, builtin commands take precedence over user-defined
> functions. This patch reverses that precedence, so that users can
> "override" builtin commands. Builtin commands may be accessed by
> issuing the command prefixed by an '@' character.
>
Overriding builtins sounds like a bad idea. For once it creates a
language which is heavily dependent on context. This gets hairy and
messy very fast.
> My motivation for this change is to hook insmod in loaded configfiles
> which set $prefix to a different location than desired. If there are
> any changes needed to help get this functionality included, please let
> me know.
>
Could you detail your usercase more? $prefix is the location where
modules are, why not just set it to right location?
signature.asc
Description: OpenPGP digital signature