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:
“An indirect quotation we can usually expect to rate only as better or worse, more or less faithful, and we cannot even hope for a strict standard of more and less; what is involved is evaluation, relative to special purposes, of an essentially dramatic act.”
—Willard Van Orman Quine (b. 1908)
“There is not so variable a thing in nature as a ladys head-dress.”
—Joseph Addison (16721719)