DIGITAL Command Language - Indirect Variable Referencing

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:

    If there is a case for mental events and mental states, it must be that the positing of them, like the positing of molecules, has some indirect systematic efficacy in the development of theory.
    Willard Van Orman Quine (b. 1908)

    There is not so variable a thing in nature as a lady’s head-dress.
    Joseph Addison (1672–1719)