13.07.2015 Views

apple-pascal-1.3-manual

apple-pascal-1.3-manual

apple-pascal-1.3-manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

o The real variable METAL declared in procedure ENGINE is knownthroughout procedure ENGINE.o The boolean variable MET AL declared in procedure TRUNK is knownthroughout procedure TRUNK, except that it is not known anywherewithin procedure JACK because the identifier MET AL is redeclared inthat procedure.o The char variable PLASTIC declared in procedure TRUNK is knownthroughout procedures TRUNK and JACK.o The integer variable METAL declared in procedure JACK is knownthroughout procedure JACK.Size and Complexity LimitsThe Compiler imposes certain limits on the size of any single block, and thenumber of levels in which you can nest blocks. Here "size" refers to thenumber of bytes in the codefile generated by the Compiler.Block nesting is restricted to a maximum of 8 levels, counting the wholeprogram as one level.The size of a given block is difficult to judge just by looking at its sourcetext. Here are the actual rules:o The total number of procedures and functions may not exceed 254 in anysegment. A program is one segment; other kinds of segments aredescribed in Chapter 15.o The total compiled code for any single block (program, Program Unit,procedure, or function) may not exceed 1999 bytes.III-136Chapter 8: Procedures and Functions

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!