- Irie Pascal
- Web Programming
- Company
Below is a list of some of the questions frequently asked about Irie Pascal.
Answer. By default, when you start the Irie Pascal Integrated Development Environment (IDE), the first thing it does is open the default project which normally contains a program that prints "hello world". Even if you create a new program, the IDE will continue to compile and run the default project.
In order to get the IDE to compile and run your program, you have to do one of the following:
Answer. Yes, programs compiled with Irie Pascal will run on UNIX webservers (the Apache webserver running on Linux, FreeBSD, Solaris/x86, or Solaris/Sparc servers).
The first thing I do when a CGI program doesn't run is to try running the program from the command-line. If the program still does not run, at least I will get an error message telling me the reason for the failure. On the other hand, if the program does run, and the output looks ok then I know it's a server configuration issue.
If you don't have access to the command-line on the server then things get a little trickier to troubleshoot. In that case try the following checklist:
Answer. No. Although both Irie Pascal and Turbo Pascal support Standard Pascal (more or less), they also each support some extensions that the other does not. It is unlikely that you will be able to port any significant program from one to the other without making major modifications.
Answer. There are many different dialects of the Pascal programming language, and each Pascal compiler tends to support a slightly different dialect./p>
There are two main dialects of Pascal. One main dialect is the official standard for Pascal (called Standard Pascal). Standard Pascal is defined by the International Organization for Standardization (ISO), and is known officially as ISO/IEC 7185.
Irie Pascal supports almost all of Standard Pascal with a few documented exceptions. The other main dialect is the one supported by Turbo Pascal. For many years, Turbo Pascal was the most popular Pascal compiler and so when many people think of Pascal they think of the Turbo Pascal dialect.
Almost all Pascal compilers (including Irie Pascal) support Standard Pascal, meaning they will compile programs that follow the Standard Pascal rules. However almost all Pascal compilers also support extra features that are not a part of Standard Pascal, but the problem with this is that different compilers support different extra features, and support them in different ways. So the result is that if you write your program in Standard Pascal then it will probably work with almost all Pascal compilers, but if you use extra features that are not a part of Standard Pascal then your programs become more compiler specific and will only work with some compilers. In some cases, if you use extra features that are supported by only one compiler then your programs will only work with that one compiler.
Answer. Irie Pascal does not really support printing. However you can taker advantage of the support for printing, built into Windows (see below for more details). Please note however that although the technique described below seems to work it is not officially supported (in other words, use at your own risk).
Anyway, the official word on printing using Irie Pascal is below:
Irie Pascal does not directly support generating programs that can print to a printer. However in most cases, you can write programs that will print through Windows. The basic idea is to define a text file variable, and assign it a name that either refers to a printer port or the name of a printer on the network. Then you open the file variable (using rewrite) and use the file variable to send output to the printer (using write or writeln).
Answer. No, you can't use Irie Pascal to create programs that use Windows graphics, fonts, menus etc.
Answer. The compiler is just numbering your program from the first line (line number 1) to the last line, incrementing by one each time. So for example, if your program has 20 lines then each line is numbered from 1 to 20 starting with the first line. I am not sure if I answered your question, you might have been asking how do you get to the line in your program that the error messages are referring to.
Answer. The built-in procedure clrscr can be used to clear the screen. However clrscr is only supported on the Windows Edition of Irie Pascal. Because Irie Pascal runs on so many different platforms it is difficult to take maximum advantage of each platform. So far the priority has been on developing features that can be easily ported to all supported platforms. Unfortunately I/O (advanced console, graphics, sound etc) tends to be very non-portable and has so far not been fully implemented.
Answer. In Irie Pascal directories are just lists of filenames (I am using the term list in the general sense, I'm not referring to the special list type defined in the Irie Pascal programming language). Most operating systems don't allow you to manipulate directories using the file procedures, so Irie Pascal provides a separate group of procedures for manipulating directories. These procedures are opendir, readdir, rewinddir, and closedir.
The sample program "listdir.pas" is a simple program that shows how to use most of the built-in directory procedures. Take a look at "listdir.pas" (in the samples directory) and experiment with it if you like.
Answer. Sorry, but Irie Pascal does not automatically indent your programs.