Board index » delphi » Modula-2 = Pascal?

Modula-2 = Pascal?

How similar is modular-2 and pascal? I wish to learn pascal and have
an old Modula-2 book from my uni days. The languages look similar but
seeing I've only been using delphi for a week I don't what to confuse
myself by studying a modular-2 book...

 

Re:Modula-2 = Pascal?


Quote
Jason Lowe wrote:

> How similar is modular-2 and pascal? I wish to learn pascal and have
> an old Modula-2 book from my uni days. The languages look similar but
> seeing I've only been using delphi for a week I don't what to confuse
> myself by studying a modular-2 book...

Modula-2 is, for most intents and purposes, a superset of the original
standard Pascal. You should notice though that many Pascal vendors (in
particular Borland) have made extensions to the Pascal language. Those
were sometimes inspired by Modula, but do not always have the same
syntax (for example Modulas "modules" are called "units" in TP).
Additionally, we have had a "new" Pascal ISO-standard for a couple of
years now, which has taken aboard features from Modula-2, Modula-3 and
Oberon as well. But you should have no trouble moving from one to the
other, except the odd compiler error message, when you mixed up the
syntax.

Re:Modula-2 = Pascal?


Wow,

Having worked for Niels Jensen (Founder of Borland and Developer of Turbo
Pascal), on his TopSpeed Compilers (C, C++, Pascal, Modula 2), and having
been an aficionado of Modula (And Oberon/Wirth style languages), I'm very
impressed to see an accurate and well informed answer here. (So seldom
happens these days !!!!

-Joe

Quote
Dr E. Buxbaum wrote in message <34BEB8FC.2...@le.ac.uk>...
>Jason Lowe wrote:

>> How similar is modular-2 and pascal? I wish to learn pascal and have
>> an old Modula-2 book from my uni days. The languages look similar but
>> seeing I've only been using delphi for a week I don't what to confuse
>> myself by studying a modular-2 book...

>Modula-2 is, for most intents and purposes, a superset of the original
>standard Pascal. You should notice though that many Pascal vendors (in
>particular Borland) have made extensions to the Pascal language. Those
>were sometimes inspired by Modula, but do not always have the same
>syntax (for example Modulas "modules" are called "units" in TP).
>Additionally, we have had a "new" Pascal ISO-standard for a couple of
>years now, which has taken aboard features from Modula-2, Modula-3 and
>Oberon as well. But you should have no trouble moving from one to the
>other, except the odd compiler error message, when you mixed up the
>syntax.

Other Threads