Jump Table Example in PL/I
PL/I implements a jump table as an array of label variables. These may be initialized in an unusual way by using a subscripted statement label. PL/I label variables are not simply the address of the statement, but usually contain additional information on the state of the code block to which they belong.
declare lab (10) label; declare x fixed binary; goto lab(x); lab(1): /* code for choice 1 */ ; ... lab(2): /* code for choice 2 */ ; ...Read more about this topic: Branch Table
Famous quotes containing the words jump and/or table:
“I was given the gifts of the artist, and the trouble that goes with them: So I have that blessing, and there was never a time that I questioned it or doubted it.... For forty years, I wanted to jump out of windows.”
—Louise Nevelson (19001988)
“Thou preparest a table before me in the presence of mine enemies; thou anointest my head with oil; my cup runneth over.”
—Bible: Hebrew Psalms, 23:5.