Re:Switching from Turing to Pascal
In article <FACLyx.DID.0.qu...@torfree.net>
Quote
da...@torfree.net (Karl Knechtel) wrote:
> 1) Should I bother?
I assume turing is a language. Depends. Its better than switching
to C :)
Quote
> 2) Where can I get a cheap (read free) Pascal compiler for Mac?
Theoretically GPC should be Macable. It would require some skill on
your part, however.
Quote
> 3) Are there any significant differences I will have to watch out for?
> From the code I've seen in here it looks like Pascal lacks <end if> and
> <end for> statements; is this the case?
You betcha. In the book "Oberon, the language", Wirth (the creator of
Pascal) said that the omission of the specific end statements for for, while
and if statements was a major flaw in Pascal's design, which was done
at the time to please Algol programmers (which I presume worked the
same way). And all his later languages included that feature.
Note that you can get the exact same effect by using begin-end braketing:
for ... do begin .. end;
while ... do begin ... end;
if ... then begin ... end;
Me, I use while and for for small tasks un{*word*62}erated, braket for anything
significant, and usually braket if/then/else for any complex ifs whatever.
I got very tired of dealing with dangling else's.
Quote
> Please reply personally to
> Karl Knechtel {:-#>
> da728 at torfree dot net
> replacing " at " with @ and " dot " with . as might be expected.
No, and increasingly it is considered rude to ask, sorry.
[sam]
The year 2000. The stock market hitting 10,000.
These events prove once and for all that we
have ten fingers......