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:
“Long as I have lived, and many blasphemers as I have heard and seen, I have never yet heard or witnessed any direct and conscious blasphemy or irreverence; but of indirect and habitual, enough. Where is the man who is guilty of direct and personal insolence to Him that made him?”
—Henry David Thoreau (18171862)
“There is not so variable a thing in nature as a ladys head-dress.”
—Joseph Addison (16721719)