After the first step of design described at the beginning of Section 4.4; the de

After the first step of design described at the beginning of Section 4.4; the designer of the SYMBOL_TABLE module anticipates that he will store the information contained in the various blocks in contiguous locations. Therefore, the algorithms for RETRIEVE and LEVEL will be almost identical: To search for the value of a variable, first the most recently entered block is searched, and then, if the variable is not found, the previously entered block is searched, and so on. The designer proposes to his colleagues that they should take advantage of this near identity of algorithms and change the interface. Toward that end. instead of having procedures RETRIEVE and LEVEL, he will provide a procedure (RETRIEVE_LEVEL) that merges the two. Its proposed interface is as follows: After some discussion, the designer's colleagues convince him that merging the two operations into one is not such a good idea. Do you agree with this decision? Why? Why not?

You may also like