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 subroutineDescriptionThis 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). Syntax
Params
Action 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.) Returns Nothing. But it modifies the contents pointed to by $rh_options. Examples from fun_cmp : Notes This subroutine must preceed set_default_options. (Otherwise all options will have SOME value, and this subroutine will have no affect.) See Also set_default_options
|