TweetFollow Us on Twitter

Think Pascal, Reference
Volume Number:8
Issue Number:1
Column Tag:Tools of the Trade

Think Pascal 4.0 & Think Reference

By Dave Kelly, Ontario, California

THINK Pascal 4.0 is System 7.0 Compatible

Remarkably, most of my software still runs after I upgraded to System 7.0. Most of the software only has minor incompatibilities with System 7.0. That is, it works fine as long as you don’t need virtual memory or 32-bit addressing capabilities. THINK Pascal 3.0 falls into that category. Version 3.0 still works fine as long as you don’t need virtual or 32-bit addressing. You can probably get by with version 3.0 and avoid the upgrade to 4.0 if you don’t mind missing a few features. There are some nice additions to THINK Pascal 4.0. Hopefully, I can show some of you why you should upgrade to version 4.0. Some of you will see why you shouldn’t upgrade.

Upgrading to version 4.0 is like driving a new car. The old car, depending on the model, still provides adequate transportation (it gets you there most if not all of the time). The new car provides the latest and greatest in new technology and gadgetry that you won’t want to do without once you get used to using it. THINK Pascal 4.0 is a new model of the same trusted car that now has new gadgetry added and a few technology features to keep up with the times.

Keeping Up With The Times

Keeping up to date is the first reason for upgrading to version 4.0. Full System 7.0 compatibility is important. Many developers have had the pre-release versions of the THINK libraries for use with version 3.0 that have provided system 7.0 support for quite a while now. They may be good enough, but if you want to be sure you have the real thing, you’ll want to upgrade to version 4.0. If you aren’t writing System 7.0 compatible software, then you won’t need the update.

THINK Pascal 4.0 supports virtual memory and runs in 32-bit mode. Applications created by THINK Pascal v2 and v3 always did run in 32-bit mode, but version 4.0 also supports all of the toolbox routines in Inside Macintosh Volume VI. The THINK Class Library (now version 1.1) supports system 7.0 as well, including AppleEvents and aliases.

You can create an alias of the project file and place it anywhere. However, since THINK Pascal uses the original project file location, aliases aren’t supported more than that. For example, you can’t refer to an alias of the resource file. The original resource file must still reside in the same folder as the original project. You can’t put an alias of a file into your project either.

The Gadgets

Some of THINK Pascal 4.0’s new gadgets will appeal to you. My favorite is the Instant Project. Instant Project helps you anytime you create a new project from scratch. If your projects are small, you probably create new projects more often. In that case, you will especially like Instant Project if you create a lot of projects. When you select the Instant Project option in the New Project dialog, THINK Pascal automatically creates your basic project files for you. No, it doesn’t do the coding for you, but it does get you started. A new folder is created with your

project and a source file (already installed in the project). The project now contains “Runtime.lib”, “Interface.lib”, and your source file. The source file is already set up with program, begin and end. statements.

Adding several files to a project is easier too. Hold down the option key and look in the project menu. The “Add File ” command will change to “Add Files ” which lets you select multiple files for adding to your project.

A few extensions have been added to THINK Pascal 4.0 to make working with larger files easier too. Any kind of project can have multiple segments. In version 3.0, you could only have a multiple-segment application, device drivers, and desk accessories. With 4.0, cdevs, INITs, XCMDs, and XFCNs can also have multiple segments.

There is a new and improved version of the AppleEdit DA that is also 32-bit clean. It’s not really much to brag about, but you can print out your files with it. Speaking of printing, you can print out the text and drawing windows with THINK Pascal’s print command. Or if you choose “Save as ” then a TeachText file is created for the text window and an object draw file (part of the THINK Pascal tutorial) is created for the drawing window. I don’t know why they didn’t use TeachText 7.0 files for drawings instead of object draw files.

The uses clause is now supported in units used by other units. If your unit uses other units, any unit that uses your unit also uses those units automatically. uses can also be used in a units implementation section.

Debugging has improved too. You can choose which debugger (MacsBug or another) you will use when THINK Pascal comes to an exception. When you use LightsBug you can open a new LightsBug window while the first one is still open. Searching is faster and easier with multiple file searches. Compiling is faster now too (up to 60,000 lines per minute on a Macintosh IIci). The profiler is easier to use under version 4.0. You don’t need to add any function calls to your program to use the profiler. You just need to turn on the “Profile” option in the Compile Options dialog.

There are still other improvements that I don’t have time to mention here. If you don’t have Pascal and are still deciding which compiler to get, this is the one! THINK Pascal is still the smoothest, easiest to use Pascal compiler around. Upgrading may be a tough choice though since THINK Pascal 3.0 is very good, too. The upgrade for registered THINK Pascal users is $69. THINK Pascal 4.0 is still the best Pascal available for any computer, but it’s only found on the Macintosh!

THINK Reference

In the early days of Macintosh programming, information was much more difficult to come by. If you were not a “certified” developer you especially had trouble getting information. Fortunately, Apple standardized the Macintosh user interface by formally creating Inside Macintosh (IM). IM volumes I-III have been the base standard since the beginning with only minor modifications, although major additions have been made from time to time (volumes IV-VI). Programmers that follow IM will find that their code will run now and still run in the future.

Even after you are familiar with IM and the standard routines that you like to use, it will be only a matter of time before you will need to consult IM for more detailed information. Some of you may have programming sessions that include IM Volumes I-III spread out on your right, vol. IV on your left, vol. V on a chair behind you. If you can find room for vol. VI on your desk you’ll be lucky. Of course, some of you may be using the HyperCard version of IM that you can find on developer CDs (CDs that Apple sends to Apple Partners and Apple Associates). However, running HyperCard along with your development system could be somewhat memory intensive, especially if you don’t have much RAM.

When I talked about “Just Enough Pascal” (JEP) a few issues ago, I noted that JEP could be used as a Pascal reference. It should not be used as a Macintosh programming reference. JEP is limited to the subjects covered in its tutorial.

Symantec must have realized that there was still a need for a good detailed reference to Macintosh programming. The THINK Reference has been especially developed for Macintosh programmers. Reference covers IM volumes I-V with a few exceptions. AppleTalk, the Slot Manager, the Sound Manager and SANE (Standard Apple Numerics Engine) are not covered.

Symantec’s coverage of IM is not just another regurgitation of the same material that is found in IM. Reference is much more than that. If you program in C, you’ll especially like Reference because all of the examples are given in C style format. If you have trouble translating IM (Pascal) functions and procedures into C, then Reference is a great way to understand IM. If you only program in Pascal and don’t understand the C style declarations, Reference gives a section on “Pascal & C” that gives you “all you need to know” about the differences in the declarations. The Copy Template item in the Edit menu allows you to copy a template of a particular function or procedure. You can choose to copy the template in either C or Pascal format. This is very useful when you are using Reference with your compiler.

Each page of the reference includes a description and usually an example of the use of each routine. The examples are very good about suggesting ways to make use of each routine. The big problem is that there is no way to copy any part of the examples or description. The page can be printed, but it would be more useful to be able to paste the examples directly in source code to try them out. The descriptions could also be used to help document your source code. This is a major deficiency of THINK Reference.

Each page can be conveniently printed individually, so that you can study each one off-screen. It would be easier to print them if several pages could be printed at once, but you have to go to each page and then print the page.

Besides being able to look up any Macintosh Toolbox routine by trap name or by manager, THINK Reference includes hypertext links to let you jump directly to related subjects. Hyperlinks appear as underlined words. Bold underlined hyperlinks usually refer to Toolbox routines. Plain underlined hyperlinks refer to data structures, variables or fields of records. The capability to jump to other Reference pages is what makes Reference most useful.

A set of buttons are provided for navigation through the pages of THINK Reference. Clicking on one of the buttons brings up a pop up menu. You can use the “Go Back” button to return to any section that you had previously visited. The “See Also” button refers you to subjects that are related to the page you are currently viewing. “Bookmarks” is a button that brings up a pop up menu that has user-defined items to move to a topic quickly. As you can see, it is easy to move around freely from page to page.

A little over 2 megabytes of disk space is required for the THINK Reference database. For smaller configurations, it would have been desirable to have a smaller database of just the templates with the ability to copy templates. Programmers with larger configurations would like to see more included in the Reference such as descriptions of C and Pascal libraries (such as the ANSI library in C or the Runtime.lib library in Pascal). It would also be desirable to have the ability to update the Reference with their own notes.

In summary, if you don’t already have some sort of reference system, you should consider THINK Reference. Overall, the deficiencies I mentioned are minor compared to the overall usefulness of the database. Maybe some improvements will be made in the next version.

THINK Pascal requires 1 megabyte of RAM minimum; 2 megabytes strongly recommended. 4Mb recommended for use with THINK Class Library or MacApp.

THINK Reference requires 1 megabyte of RAM but works best with 2 or more megabytes when using MultiFinder. Reference database requires 3.5 Mb free for installation; database requires a little more than 2 megabytes of Hard Disk and System 6.0.5 or higher for both Pascal and Reference.

For more information, contact:

Symantec Corporation

10201 Torre Avenue, Cupertino, CA. 95014

Phone: 408/253-9600

Retail Price: $99 for THINK Reference.

$249 for THINK Pascal.

$69 Upgrade price from any previous version of THINK Pascal.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Fresh From the Land Down Under – The Tou...
After a two week hiatus, we are back with another episode of The TouchArcade Show. Eli is fresh off his trip to Australia, which according to him is very similar to America but more upside down. Also kangaroos all over. Other topics this week... | Read more »
TouchArcade Game of the Week: ‘Dungeon T...
I’m a little conflicted on this week’s pick. Pretty much everyone knows the legend of Dungeon Raid, the match-3 RPG hybrid that took the world by storm way back in 2011. Everyone at the time was obsessed with it, but for whatever reason the... | Read more »
SwitchArcade Round-Up: Reviews Featuring...
Hello gentle readers, and welcome to the SwitchArcade Round-Up for July 19th, 2024. In today’s article, we finish up the week with the unusual appearance of a review. I’ve spent my time with Hot Lap Racing, and I’m ready to give my verdict. After... | Read more »
Draknek Interview: Alan Hazelden on Thin...
Ever since I played my first release from Draknek & Friends years ago, I knew I wanted to sit down with Alan Hazelden and chat about the team, puzzle games, and much more. | Read more »
The Latest ‘Marvel Snap’ OTA Update Buff...
I don’t know about all of you, my fellow Marvel Snap (Free) players, but these days when I see a balance update I find myself clenching my… teeth and bracing for the impact to my decks. They’ve been pretty spicy of late, after all. How will the... | Read more »
‘Honkai Star Rail’ Version 2.4 “Finest D...
HoYoverse just announced the Honkai Star Rail (Free) version 2.4 “Finest Duel Under the Pristine Blue" update alongside a surprising collaboration. Honkai Star Rail 2.4 follows the 2.3 “Farewell, Penacony" update. Read about that here. | Read more »
‘Vampire Survivors+’ on Apple Arcade Wil...
Earlier this month, Apple revealed that poncle’s excellent Vampire Survivors+ () would be heading to Apple Arcade as a new App Store Great. I reached out to poncle to check in on the DLC for Vampire Survivors+ because only the first two DLCs were... | Read more »
Homerun Clash 2: Legends Derby opens for...
Since launching in 2018, Homerun Clash has performed admirably for HAEGIN, racking up 12 million players all eager to prove they could be the next baseball champions. Well, the title will soon be up for grabs again, as Homerun Clash 2: Legends... | Read more »
‘Neverness to Everness’ Is a Free To Pla...
Perfect World Games and Hotta Studio (Tower of Fantasy) announced a new free to play open world RPG in the form of Neverness to Everness a few days ago (via Gematsu). Neverness to Everness has an urban setting, and the two reveal trailers for it... | Read more »
Meditative Puzzler ‘Ouros’ Coming to iOS...
Ouros is a mediative puzzle game from developer Michael Kamm that launched on PC just a couple of months back, and today it has been revealed that the title is now heading to iOS and Android devices next month. Which is good news I say because this... | Read more »

Price Scanner via MacPrices.net

Amazon is still selling 16-inch MacBook Pros...
Prime Day in July is over, but Amazon is still selling 16-inch Apple MacBook Pros for $500-$600 off MSRP. Shipping is free. These are the lowest prices available this weekend for new 16″ Apple... Read more
Walmart continues to sell clearance 13-inch M...
Walmart continues to offer clearance, but new, Apple 13″ M1 MacBook Airs (8GB RAM, 256GB SSD) online for $699, $300 off original MSRP, in Space Gray, Silver, and Gold colors. These are new MacBooks... Read more
Apple is offering steep discounts, up to $600...
Apple has standard-configuration 16″ M3 Max MacBook Pros available, Certified Refurbished, starting at $2969 and ranging up to $600 off MSRP. Each model features a new outer case, shipping is free,... Read more
Save up to $480 with these 14-inch M3 Pro/M3...
Apple has 14″ M3 Pro and M3 Max MacBook Pros in stock today and available, Certified Refurbished, starting at $1699 and ranging up to $480 off MSRP. Each model features a new outer case, shipping is... Read more
Amazon has clearance 9th-generation WiFi iPad...
Amazon has Apple’s 9th generation 10.2″ WiFi iPads on sale for $80-$100 off MSRP, starting only $249. Their prices are the lowest available for new iPads anywhere: – 10″ 64GB WiFi iPad (Space Gray or... Read more
Apple is offering a $50 discount on 2nd-gener...
Apple has Certified Refurbished White and Midnight HomePods available for $249, Certified Refurbished. That’s $50 off MSRP and the lowest price currently available for a full-size Apple HomePod today... Read more
The latest MacBook Pro sale at Amazon: 16-inc...
Amazon is offering instant discounts on 16″ M3 Pro and 16″ M3 Max MacBook Pros ranging up to $400 off MSRP as part of their early July 4th sale. Shipping is free. These are the lowest prices... Read more
14-inch M3 Pro MacBook Pros with 36GB of RAM...
B&H Photo has 14″ M3 Pro MacBook Pros with 36GB of RAM and 512GB or 1TB SSDs in stock today and on sale for $200 off Apple’s MSRP, each including free 1-2 day shipping: – 14″ M3 Pro MacBook Pro (... Read more
14-inch M3 MacBook Pros with 16GB of RAM on s...
B&H Photo has 14″ M3 MacBook Pros with 16GB of RAM and 512GB or 1TB SSDs in stock today and on sale for $150-$200 off Apple’s MSRP, each including free 1-2 day shipping: – 14″ M3 MacBook Pro (... Read more
Amazon is offering $170-$200 discounts on new...
Amazon is offering a $170-$200 discount on every configuration and color of Apple’s M3-powered 15″ MacBook Airs. Prices start at $1129 for models with 8GB of RAM and 256GB of storage: – 15″ M3... Read more

Jobs Board

*Apple* Systems Engineer - Chenega Corporati...
…LLC,** a **Chenega Professional Services** ' company, is looking for a ** Apple Systems Engineer** to support the Information Technology Operations and Maintenance Read more
Solutions Engineer - *Apple* - SHI (United...
**Job Summary** An Apple Solution Engineer's primary role is tosupport SHI customers in their efforts to select, deploy, and manage Apple operating systems and Read more
*Apple* / Mac Administrator - JAMF Pro - Ame...
Amentum is seeking an ** Apple / Mac Administrator - JAMF Pro** to provide support with the Apple Ecosystem to include hardware and software to join our team and Read more
Operations Associate - *Apple* Blossom Mall...
Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.