# Introduction to Macintosh Pascal — source transcripts, page 1

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-introduction-to-macintosh-pascal-1985-b0ab9a/1)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### Image 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-introduction-to-macintosh-pascal-1985-b0ab9a/1#scan-a8095ad0b0f149755a0cd24d6e34c27ca72cda1df3e86d136b1e26c89a4141cb)

Transcribed text:

HAYDEN Macintosh Library

Apple Press

Introduction to Macintosh™ Pascal

Jonathan D. Simonoff

Image description: A book cover with a purple-to-magenta gradient background, a framed illustration of a beige Macintosh computer with keyboard and mouse sitting on a black starry shape against a cloudy blue sky with a crescent moon, and a pink wavy line across the middle.

Reading notes: The 'HAYDEN' and 'Macintosh Library' script text in the top banner is stylized and was transcribed as printed; the Apple Press logo text is small. Trademark symbol ™ after Macintosh in the title is transcribed as printed.

Languages: English

[Original Image 1](https://www.vintageapple.net/files/9601d190ad04cb1a15e46c57637e0a0a049198431d336d37a69c78cb1b61e2e7/60f2fd050aa717d9aca1a205.webp)

### PDF page 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-introduction-to-macintosh-pascal-1985-b0ab9a/1#scan-5e03708d0dd32c4bdcf51814f819e57a6a0815d700b346165390ba5faf6222ea)

Introduction to Macintosh Pascal

Transcribed text:

HAYDEN Macintosh Library
Apple Press
Introduction to
Macintosh Pascal
Jonathan D. Simonoff

Image description: A book cover with a purple-to-pink gradient background, a yellow top band with the HAYDEN Macintosh Library logo, a framed illustration of a beige Macintosh computer with keyboard and mouse set on a black starry pedestal against a cloudy sky with a crescent moon, and a pink wavy line crossing the sides.

Reading notes: The small 'TM' after 'Introduction to' and 'Macintosh' is a trademark mark and was transcribed as shown in the headline position only in the transcript context; its exact placement is slightly ambiguous. The top-right corner has a grey rectangular patch whose contents are not legible text. The author name is spaced letters and transcribed as 'Jonathan D. Simonoff'.

Printed product names: Macintosh Pascal

Languages: English

[Original PDF page 1](https://www.vintageapple.net/files/0860e66b77c13b5dfb8dafd1806b5eea9274ec5c09203a17d30b516141ccad86/Introduction_To_Macintosh_Pascal_1985.pdf#page=1)

### PDF page 2

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-introduction-to-macintosh-pascal-1985-b0ab9a/1#scan-3e8aaf6269237735d463c37e17fd03206717bbc4221b26bff21d4f41ebf7c6a2)

Transcribed text:

Introduction to Macintosh™ PASCAL

Image description: A mostly blank off-white page with a bold black serif title in the upper right area followed by three horizontal magenta rules beneath it.

Reading notes: The trademark symbol after Macintosh is small and superscript; transcribed as ™.

Languages: English

[Original PDF page 2](https://www.vintageapple.net/files/0860e66b77c13b5dfb8dafd1806b5eea9274ec5c09203a17d30b516141ccad86/Introduction_To_Macintosh_Pascal_1985.pdf#page=2)

### PDF page 3

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-introduction-to-macintosh-pascal-1985-b0ab9a/1#scan-327c4e7e236f6c13553fdc726de1412f2867ab4945f2dc493fecc6307d5b7a7d)

Transcribed text:

Introduction
to Macintosli
PASCAL
Jonathan D.   Simonoii
[{]
Hayden Book Company
A   DIVISION   OF   HAYDEN   PUBLISHING   COMPANY,   INC.
HASBROUCK   HEIGHTS ,   NEW   JERSEY   I   BERKELEY,   CALIFORNIA

Reading notes: OCR rendering of 'Macintosh' appears as 'Macintosli'; 'Jonathan D. Simonoii' likely 'Simonoff' or similar Bracketed '[{]' mark uncertain

Languages: English

[Original PDF page 3](https://www.vintageapple.net/files/0860e66b77c13b5dfb8dafd1806b5eea9274ec5c09203a17d30b516141ccad86/Introduction_To_Macintosh_Pascal_1985.pdf#page=3)

### PDF page 4

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-introduction-to-macintosh-pascal-1985-b0ab9a/1#scan-b26aa888106c46d1b7e0f586187191367d1e9fdf4a13d69dfc252193da126227)

Transcribed text:

Apple believes   that   good books are important to successful com-
puting. The Apple Press imprint is your assurance that this book
has been published with the support and encouragement of
Apple Computer Inc., and is the type of book we would be proud
to publish ourselves.
Composition and production:   TECHAlrr,   SAN   FRANCISCO
Printed and bound by: COMMAND WEB   OFFSET,   INC.
Cover design: JIM BERNARD
Cover photo:   WU   ODOR
Library of   Congress   Cataloging-in-Publication Data
Simonoff,   Jonathan D.
Introduction to Macintosh Pascal.
Includes index.
1. Macintosh (Computerl-Programming. 2. PASCAL
(Computer program language)   I.   Title.
QA76.8.M3S56 1985   005.265   85-24835
ISBN   0-8104-6562-0
Macintosh is a trademark of Macintosh Laboratory, Inc., licensed to Apple Computer
Inc., neither of which is affiliated with Hayden Book Company. Macintosh Pascal is a
trademark of Apple Computer Inc.
Copyright ©   1985   by Jonathan D. Simonoff. All rights reserved. No part of this book
may be reprinted, or reproduced, or utilized in any form or by any electronic,
mechanical, or other means, now known or hereafter invented, including
photocopying and recording, or in any information storage and retrieval system,
without permission in writing from the Publisher.
Printed in the   United   States   of America
1   2   3   4   5   6   7   8   9   Printing
85   86   87   88   89   90   91   92   93   Year

Reading notes: Primary heading not explicitly printed in the supplied copy; headline set to null Library of Congress call number and ISBN appear in fine print; some OCR spacing irregular

Printed product names: Macintosh Pascal

Printed dates: 1985 · 85-24835 · 1 2 3 4 5 6 7 8 9 Printing · 85 86 87 88 89 90 91 92 93 Year

Languages: English

[Original PDF page 4](https://www.vintageapple.net/files/0860e66b77c13b5dfb8dafd1806b5eea9274ec5c09203a17d30b516141ccad86/Introduction_To_Macintosh_Pascal_1985.pdf#page=4)

### PDF page 5

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-introduction-to-macintosh-pascal-1985-b0ab9a/1#scan-06e329725d28318a1f952fa4084f5245c0ea4e3ab605d9beddef791fc7da38e9)

Transcribed text:

Preface
Introduction to Macintosh Pascal   was written to provide an
easy-to-follow introduction to programming, to programming
in Pascal, and to programming the Macintosh.
It   is based on the idea that programming is learned best by
examining and creating real programs that solve real problems.
Programming is often surrounded with an unnecessary and
misleading sense of mystery. Learning to program is really a skill
on the order of learning how to write a term paper-with the
additional   advantage that the   computer   never   writes   snide
comments in the margin, and never delivers a grade at the end
of the semester.
Although a book may have a single name on its cover, all
books are the sum of the efforts of many people. I would
especially   like   to   thank   Susan   Keohan,   without   whose
encouragement nothing would have been written, and without
whose help nothing would have been finished.
Thanks also to Andrew   Singer   of Think Tuchnologies; Chris
Espinosa of Apple Computer; and Marjorie Lefkowitz and Eben
Sprinsock for their great help in testing and verifying the book
and its programs.
Thanks for any errors, of course, lie only with myself.

Reading notes: Possible misprint 'Tuchnologies' for 'Technologies' in acknowledgments

Printed product names: Macintosh Pascal

Languages: English

[Original PDF page 5](https://www.vintageapple.net/files/0860e66b77c13b5dfb8dafd1806b5eea9274ec5c09203a17d30b516141ccad86/Introduction_To_Macintosh_Pascal_1985.pdf#page=5)

### PDF page 6

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-introduction-to-macintosh-pascal-1985-b0ab9a/1#scan-7548b6587b0f105fc6dc1680f421a5680a8fa094ceef3b79f58d35cec98c5611)

Transcribed text:

Contents
Chapter 1   Can I Be an Artist if I Can't Draw a Line?   1
Starting   Macintosh Pascal   1
Writing a Program   4
Editing a Program   15
Finishing   Up   16
Chapter 2   Lining   Up   23
Variables and the Mouse   23
Functions   29
Giving Feedback   33
Changing   the Mac's Pen   36
Writing   Your   Own   Procedures   37
Writing   Your   Own   Functions   40
TRUE   and   FALSE   Expressions   45

Languages: English

[Original PDF page 6](https://www.vintageapple.net/files/0860e66b77c13b5dfb8dafd1806b5eea9274ec5c09203a17d30b516141ccad86/Introduction_To_Macintosh_Pascal_1985.pdf#page=6)

### PDF page 7

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-introduction-to-macintosh-pascal-1985-b0ab9a/1#scan-26716d9460cfdce292fd420552ef16d6c9079e94c034478e75a6a1b70d59326f)

Transcribed text:

Chapter 3   Rectangles and   Ovals   51
Drawing a Rectangle   51
Drawing More   Shapes   62
All About the Macintosh Pen   80
Chapter 4   What   fype   Through Yonder Window Breaks   91
Machintosh   Text   91
Fonts   99
Faces   103
Size   108
Transfer   Mode   112
A   Simple   Editor   116
Storing   Text   123
Chapter 5   Fielding   139
Developing a   One-Field   Editor Program   139
Enumerated Data   fypes   142
Global and Local Coordinates   143
Creating   Onscreen   Buttons   145
Defining   the Drawing Window   147
Sizing   the Editing Field   148
Displaying the Editing Field   150
Edi~ing   Procedures   151
Results of Field Editor   160
Developing a Multiple Field Editor   160
Chapter 6   Files: A Piece of Cake   177
File Variables   178
File Procedures   179
Modifying the Multiple Field Editor   182
Creating the Basic Framework   200
Sorting   207

Reading notes: Table-of-contents style listing with OCR-like damage such as 'fype' for 'Type' and 'Machintosh' for 'Macintosh'. Reading order of chapter headings and subsections may be uncertain due to layout loss.

Printed product names: Macintosh

Languages: English

[Original PDF page 7](https://www.vintageapple.net/files/0860e66b77c13b5dfb8dafd1806b5eea9274ec5c09203a17d30b516141ccad86/Introduction_To_Macintosh_Pascal_1985.pdf#page=7)

### PDF page 8

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-introduction-to-macintosh-pascal-1985-b0ab9a/1#scan-4c37962299966bd9f7f75b8c1bbeaa090437995bda3a74ab638572528395cbb9)

Transcribed text:

Chapter 7   Sound Synthesis   221
A Little Theory   222
The Practical Side   226
A Simple Program   227
Dialing a Telephone   228
Pointers and Normal Variables   230
Chapter 8   Printing   253
Chapter 9   Advanced QuickDraw   263
Polygons   265
Pictures   268
Regions   273
Cursors   274
Bitmaps   280
Patterns   285
Chapter   10   Macintosh Math   291
Math on the Macintosh   291
The Importance of Data   Types   292
Variable and Constants   292
Numbers   2~3
Precision   293
Integer Data Types   293
INTEGER   294
LONG   INT   294
Real   Data   Types
Expressions   298
Operators   299
Unary   Numbers   299
Boolean Expressions   300
Relational   Operators   301
Relational Expressions and Real Numbers   302
Operator   Precedence   304
Functions   305
Standard Functions   306
Fixed   Point   Functions   315

Reading notes: Source is a table of contents with some broken tokens such as 'Numbers 2~3' and split words like 'Real Data Types' and 'Operator Precedence'. No primary heading is explicitly printed, so headline is null.

Languages: English

[Original PDF page 8](https://www.vintageapple.net/files/0860e66b77c13b5dfb8dafd1806b5eea9274ec5c09203a17d30b516141ccad86/Introduction_To_Macintosh_Pascal_1985.pdf#page=8)

### PDF page 9

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-introduction-to-macintosh-pascal-1985-b0ab9a/1#scan-3e63bfefb522bcc778c4e48e57def025b0f635a1b9eac1ba929d7e1708bfb913)

Transcribed text:

Chapter 11   Debugging
What is a   Bug?
When the Macintosh Catches a Mistake
Programming   to Avoid   Bugs
Finding   Bugs
Machintosh Pascal   Debugging   Aids
Stepping Through a Program
The Instant Window
Stops
The Observe Window
When   You   Can't   Use   the   Debugging   Aids
General   Debugging   Hints
Bugs   in the Macintosh
Appendices
Appendix A
AppendixB
Index
Everything About Semicolons
Help, Please, My Mac is Burning
319
319
320
321
323
323
323
323
325
32'7
328
329
330
333
339
345

Reading notes: Page number '32'7' may be an OCR error for '327'

Languages: English

[Original PDF page 9](https://www.vintageapple.net/files/0860e66b77c13b5dfb8dafd1806b5eea9274ec5c09203a17d30b516141ccad86/Introduction_To_Macintosh_Pascal_1985.pdf#page=9)

### PDF page 10

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-introduction-to-macintosh-pascal-1985-b0ab9a/1#scan-f42647e39cb503b21368f355a6fd96b63acedff41548c8bf9e5fd04d75ed98d3)

Transcribed text:

Introduction
The Educated
Macintosh
The   subjects covered in this introduction are:
•   What Macintosh Pascal is
•   What you need to use this book
•   How to set up your Macintosh Pascal disk for this book
•   How to use this book
What Is Macintosh   Pascal?
A computer is a machine for following instructions. When you
give instructions to a computer, the instructions have to be in
terms the computer can understand. When you write out some
instructions for the computer, those instructions are called a
program.
Sets   of   allowable   computer   instructions   are   called
computer   languages.
Pascal is one of the most popular computer languages. Pascal
was designed to be easy to learn and to help the programmer to
program well.
The Macintosh Pascal language is a version of Pascal that
includes everything in "standard Pascal;' and also lets you use all
those things that make the Macintosh such a special computer.
In particular, you can use the fast, high quality graphics and the
sound generator.

Printed product names: Macintosh Pascal

Languages: English

[Original PDF page 10](https://www.vintageapple.net/files/0860e66b77c13b5dfb8dafd1806b5eea9274ec5c09203a17d30b516141ccad86/Introduction_To_Macintosh_Pascal_1985.pdf#page=10)

### PDF page 11

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-introduction-to-macintosh-pascal-1985-b0ab9a/1#scan-e2aa50afff17598472fddd37a5f119355813b3138d43d9761008d53433af95f6)

Introduction to Macintosh Pascal

Transcribed text:

Introduction to Macintosh   Pascal
Tu   understand what makes Macintosh   Pascal   really special,
you have to know what it is like to program in most versions of
Pascal.   Usually,   you write a program using an   editor.   When you
are done, you run a program, called a   compiler,   to translate
your   program for   the   computer.   If   your   program has   any
mistakes, the compiler gives you a list of them, and then you run
the editor again, and fix the mistakes. When you compile the
program without mistakes, you run another program, called a
linker,   which creates a version the computer can use.
Macintosh Pascal, though, is an   interpreter.   You   write your
program, and then choose a menu command to run it.   If   you
have a mistake, a little hand points at the line with the mistake.
You   can then fix the mistake, and run your program again.   If   you
want to see the effect of some change, you just make the change,
and you see the effect right away.   It   is that "instant" quality of
Macintosh   Pascal   that makes the Macintosh   Pascal   language an
ideal learning language.
What   You   Need To   Use   This Book
To use this book, you must have:
•   A disk copy of Macintosh   Pascal   (This must be an authentic,
authorized copy.   Because of the protection scheme used,
"bootleg"   copies will fail after a few minutes.)
•   An Apple Macintosh or Macintosh XL (or Lisa) with MacWorks
XL
•   A blank disk
This book works for any Macintosh. The programs will all
work with 128K of memory (the smallest Macintosh available),
but more memory will make it easier for you to write your own
programs. The book assumes you have a single (internal) disk
drive. A second (external) disk drive also makes things easier, but
it is not necessary.
If   you use this book with a Macintosh XL, everything except
for the programs that use the Mac's sound generator (Chapter 6)
will work.

Reading notes: Initial word 'Tu' appears to be a possible OCR or typographical variant of 'To'.

Printed product names: Macintosh Pascal · Macintosh XL · MacWorks XL · Lisa

Languages: English

[Original PDF page 11](https://www.vintageapple.net/files/0860e66b77c13b5dfb8dafd1806b5eea9274ec5c09203a17d30b516141ccad86/Introduction_To_Macintosh_Pascal_1985.pdf#page=11)

[Next transcribed scans](https://www.vintageapple.net/transcripts/media/va-introduction-to-macintosh-pascal-1985-b0ab9a/2.md)
