template::util::array_to_vars (public, deprecated)

 template::util::array_to_vars arrayname

Defined in packages/acs-templating/tcl/util-procs.tcl

Deprecated. Invoking this procedure generates a warning.

Declare local variables for every key in an array.

Parameters:
arrayname (required)
The name of an array in the calling frame. DEPRECATED: this is a trivial idiom that can just be inlined.
See Also:
  • array

Partial Call Graph (max 5 caller/called nodes):
%3 ad_log_deprecated ad_log_deprecated (public) template::util::array_to_vars template::util::array_to_vars template::util::array_to_vars->ad_log_deprecated

Testcases:
No testcase defined.
Source code:
ad_log_deprecated proc template::util::array_to_vars
    upvar $arrayname arr

    foreach { key value } [array get arr] {
        uplevel [list set $key $value]
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: