[sr-dev] Enum PV lookup

Juha Heinanen jh at tutpro.com
Tue Apr 6 17:45:54 CEST 2010


Alex Hermann writes:

 > 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, ...).

alex,

"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.

-- juha





More information about the sr-dev mailing list