← Mastering the Macintosh Toolbox

Mastering the Macintosh Toolbox

From the originals

13 scans

Machine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.

These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.

PDF page 12

GETTING STARTED 3 languages, were developed to allow programs to be written in an English-like language and then converted, by the compiler, into the native code of the computer. Lisa Pascal, like all previous versions of Pascal, is compiled. While compiled versions of programs are preferred for commer- cial applications like spreadsheets and word processors, compiling programs can be a tedious technical process, especially for someone just learning to program. Therefore, interpreters were developed to make creating and running programs a simple two-step process. The programmer types in his or her program (the source code) and then uses a command to run the program. The steps of compiling are eliminated. The result is a program that can be run instantly. The penalty paid for using the interpreter is that interpreted pro- grams run more slowly than their compiled counterparts. In some cases, they run significantly slower. Thus, interpreted languages are great teaching aids but are not suited for commercial program development where speed of execution is crucial. The most popular interpreted computer language is BASIC. Nearly every personal computer has a variety of BASIC that runs on it. Like these versions of BASIC, Macintosh Pascal is interpreted. It breaks with the tradition of Pascal being a compiled language and introduces an interpreted version that is ideally suited for learning to program in Pascal in general and on the Macintosh in particular. Programs written with Macintosh Pascal may be converted to Lisa Pascal programs with a minimum of effort. This makes Macintosh Pascal useful for determining the feasibility of a particular program on the Macintosh before investment in a complete development system. One small drawback of using Macintosh Pascal is its lack of access to some of the routines contained in the Toolbox. This is because the interpreter running Macintosh Pascal is itself an applications pro- gram running under control of the various routines contained in the Toolbox. Therefore, programs written with Macintosh Pascal could make use of Toolbox routines that affect the Pascal interpreter. The result could be erratic program execution or even a complete shut- down or crash of the computer. But don't let this knowledge make you timid when you program. The developers of Macintosh Pascal have taken every precaution to prevent you from inadvertently using Toolbox routines that would adversely affect the Pascal interpreter.

Printed product names
Macintosh Pascal · Lisa Pascal · BASIC
Languages
English