Indirect Variable Referencing
It is possible to build arrays in DCL that are referenced through translated symbols. This allows the programmer to build arbitrarily sized data structures using the data itself as an indexing function.
$ i = 1 $ variable'i' = "blue" $ i = 2 $ variable'i' = "green" $ j = 1 $ color = variable'j' $ rainbow'color' = "red" $ color = variable'i' $ rainbow'color' = "yellow"In this example the variable rainbowblue is assigned the value "red", and rainbowgreen is assigned the value "yellow".
Read more about this topic: DIGITAL Command Language
Famous quotes containing the words indirect and/or variable:
“... so long as the serpent continues to crawl on the ground, the primary influence of woman will be indirect ...”
—Ellen Glasgow (18731945)
“Walked forth to ease my pain
Along the shore of silver streaming Thames,
Whose rutty bank, the which his river hems,
Was painted all with variable flowers,”
—Edmund Spenser (1552?1599)
Related Phrases
Related Words