|assign_option_aliases -- utility subroutine||topic started 8/28/2001; 1:01:50 AM
last post 8/28/2001; 1:01:50 AM
|Michael Gage - assign_option_aliases -- utility subroutine
8/28/2001; 1:01:50 AM (reads: 1837, responses: 0)
assign_option_aliases -- utility subroutineDescription
This utility subroutine can be used within any subroutine, evaluator or filter which uses options. It provides a uniform way to alias option values. For example the domain of a function tested by fun_cmp can be specified either by limits => [0,5] (the principle option) or by domain => [0,5] . (domain is an alias for limits).
If the option itself is defined in the options received by the parent subroutine then any aliases which are also received are ignored. An assignment to the actual option has priority, after which the FIRST alias assigned to the option which is listed in the option hash received by the parent subroutine. (In other words, once an option receives a value, subsequent assignments through aliases are ignored.)
Nothing. But it modifies the contents pointed to by $rh_options.
from fun_cmp :
This subroutine must preceed set_default_options. (Otherwise all options will have SOME value, and this subroutine will have no affect.)