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 wonder, Diz, if this Don Quixote hasnt got the jump on all of us. Wonder if it isnt a curse to go wised up like you and me.”
—Sidney Buchman (19021975)
“A child who is not rigorously instructed in the matter of table manners is a child whose future is being dealt with cavalierly. A person who makes an admirals hat out of linen napkins is not going to be in wild social demand.”
—Fran Lebowitz (20th century)