You are on page 1of 111
@eppic computer inc. 10260 Bandley Drive ‘Cupertino, California 95014 (408) 996-1010 030-0101-00 RoR RR MW MM ek RN me em Rm YP edad Th a Apple Il S Apple Pascal Language Reference Manual notice Apple Computer Inc. reserves the right to mike inproveaents in the product described in this manual at any tine and without notice. DISCLAIMER OF ALL WARRANTIES AND LIABILITY APPLE COMPUTER TNC. MAKES NO WARRANTIES, EITHER EXPRESS OR TAMPLTED WITH RESPECT TO THIS MANUAL OR WITH RESPECT TO THE SOFTWARE DESCRTRED IN THIS MAMUAL, ITS QUALITY, PERFORMANCE, MERCHANTABILITY, OR FITKESS FOR ANY PARTICULAR PURPOSE.” APPLE COMPUTER INC. SOFTWARE IS SOLD OR LICENSED "AS IS", THE ENTIRE RISK AS TD ITS QUALITY AND PERFORMANCE 13 WITH THE BUYER. SHOULD THE PROGRAMS PROVE DEFECTIVE FOLLOWING THEIR PURCHASE, THE AUYER (AND NOT APPLE COMPUTER INC., ITS DISTRIBUTOR, OR TTS RETAILER) ASSUMES THE ENTIRE COST OP ALL NECESSARY SERVICING, REPATR, OR CORRECTION AND ANY INCIDENTAL. OR CONSEQUENTIAL, DAMAGES. 14 No EVENT WILL APPLE COMPUTER INC BE LIABLE FOR DIRECT, INDIRECT, INCIDRVTAL, OR CONSEQUENTIAL DAMAGES RESULTING FROM ANY DEFECT IN THE SOFTWARE, EVE IF APPLE COMPUTER INC. HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DIMAGES. SOME STATES 00 NOT ALLOW THE EXCLUSION O8 LIMITATION OF INPLIED WARRANTIES OR LIABILITY FOR. INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE ABOVE LIMITATION OR EXCLUSION MAY WOT APPLY TO ¥OU- This wanual is copyrighted. A11 rights are reserved. This document may not, in whole or part, be copted, photocopied, reproduced, translated or reduced to any electronic medium or machine readable form Without prior consent, in writing, from Apple Computer Ine. © 1989 by APPLE coNPUTER INC. 19269 Bandley Drive Cupertino, California 95614 (498) 996-1918 ‘The word APPLE and the Apple logo are vegiatered tradenarks of APPLE COMPUTER ING. APPLE Product #42L9027 (630-8101 7 uw = = oie i ash Apple Il Apple Pascal Language Reference Manual ACKNOWLEDGENENTS, TABLE OF CONTENTS ‘The Apple Paseal™ system Incorporates UCSD Paseal™ and Apple extensions for graphics and other functions. UCSD Pascal was developed largely by the Institute for Information Seience at the University of California at San Diego, under the direction of Kenneth L. Hovless CHAPTER 4 INTRODUCTION 4 "UCSD PASCAL" is a trademark of The Regents of The University of California. Use thereof in conjunction with any goods or services 1s 2. Getting Started authorized by specific License only and is an indfeation that th 2 Scope of This Docusent jctated product or service has net quality assurance standards 2 How co Use This Docusent prescribed by the University. Any unauthorized use thereof is contrary 3 Organtzacion to the lavs of the State of California. Notation Used fn This Manual 4 Differences Between Apple and Standard Pascal 4 Predefined Varlable Types 4 BuLlt—In Procedures and Functions 3 Broaking Frograss Inco Pieces 5 Special Units for the Apple CHAPTER 2 PREDEFINED TYPES 8 The STRING Type 11 Te FILE Types 11 A Sote on Teratnology 1 11 INTERACTIVE Files 12 Untyped Files 12 Predefined Files | 12 _ Textfiles | 14 The SET Types 15 Packed Variables | 15. PAGK and UNPACK | 15 Packed Files 15 Packed Arrays 1) Packed Records 18 Using Packed Variables a6 Paranoters 19 The LONG INTEGER Type | Aa ala pene tH ny ma ua 3 wok : APPLE PASCAL LANGUAGE APPLE PASCAL LANGUAGE

You might also like