Re: [exim-dev] [Bug 1091] Parameter passing to ACL subroutin…

Página Inicial
Delete this message
Reply to this message
Autor: Phil Pennock
Data:  
Para: exim-dev
Assunto: Re: [exim-dev] [Bug 1091] Parameter passing to ACL subroutines
On 2012-10-17 at 21:06 +0100, Jeremy Harris wrote:
> On 07/07/2012 10:33 PM, Jeremy Harris wrote:
> > --- Comment #1 from Jeremy Harris <jgh146exb@???> 2012-07-07 22:33:49 ---
> > Fixed by 3e8abda0fa92b78
>
> The implementation makes parameters passed to ACLs visible in the
> called ACL in variables $acl_arg1 etc. Any sub-ACL call is liable
> to overwrite these variables, so in practice you spend a lot of effort
> copying them.
>
> Should I spend in making them auto-saved; in effect becoming local
> variables?


Makes sense to me; we do a bunch of this sort of thing for specific
other variables (lookup_value -> $value) already and it makes the most
intuitive sense when I think about how I'd use ACLs as functions.

-Phil