Infocom on PDP-11

Paul Koning pkoning at equallogic.com
Thu May 12 09:45:22 CDT 2005


>>>>> "Cameron" == Cameron Kaiser <spectre at floodgap.com> writes:

 >> > > should be written without either of the semicolons.

 >> > Why? (Unless you're talking about Algol.)

 >> Because Pascal uses the same rule of semicolons as Algol does.

 Cameron> I was all set to disagree with you, so I ran it through
 Cameron> Turbo Pascal without the semicolons and ... it worked.

 Cameron> However, when you say semicolons between statements, that's
 Cameron> what I did. So why could I have dropped the semicolons,
 Cameron> unless I have the wrong idea about what Pascal (and
 Cameron> presumably Algol) considers a statement?

"begin" and "end" are not statements -- they are keywords.  Think of
them as parentheses.  (In fact, in Algol 68 they are synonymous with
parentheses.)  Similarly, you don't put semicolons into the middle of
an if/then/else either.

   paul



More information about the cctalk mailing list