[sr-dev] Enum PV lookup
Henning Westerholt
henning.westerholt at 1und1.de
Tue Apr 6 18:26:01 CEST 2010
On Tuesday 06 April 2010, Juha Heinanen wrote:
> > Why have multiple separate functions for the same functionality?
> > These enum functions could from the beginning have been defined as
> > 'enum_query($lookup, $suffix, $service, $regexp_subject)' with all
> > arguments pv's or static
> > strings. The common use case would be enum_query($rU, ...).
>
> "in the beginning" when enum module was written, PVs didn't exist yet.
> also, functions were restricted to max two arguments.
>
> now we could change that in all modules and in all functions, but it
> requires work and breaks old scripts.
Hi Juha,
i think its possible to extend already existing config functions, as the
parser supports the usage of different fixups and implementation functions
depending on the number of parameters in the script. This of course helps
probably not in all cases, and its still a bunch of work..
Henning
More information about the sr-dev
mailing list