Updates to "unlang"
Matthew Newton
mcn4 at leicester.ac.uk
Fri Dec 11 15:54:50 CET 2015
On Fri, Dec 11, 2015 at 02:41:49PM +0000, Phil Mayers wrote:
> As an example, the built-in cache module involves a (IMO) fairly ugly set of
> constructs relying on control attributes to distinguish between check,
> lookup, set and delete.
>
> if (cache.exists %{Key}) {
> othercache.delete %{Other-Key}
> }
>
> ...as opposed to:
Exactly.
Parameters are used at the moment for modules and policies, just
in a really ugly way by having to set or read temporary
attributes.
It's much the same way as you use parameters for C functions, but
behind the scenes those values get put into CPU registers. The
parameters are much easier to comprehend (assuming the syntax is
sane).
Cheers,
Matthew
--
Matthew Newton, Ph.D. <mcn4 at le.ac.uk>
Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom
For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>
More information about the Freeradius-Devel
mailing list