On Fri, 15 Dec 2023, Adriaan van Os via fpc-pascal wrote:
The Freepascal Language Reference (version 3.2.0) states in section 16.2
"As can be seen from the syntax diagram, a unit always consists of a
interface and an implementation part."
and
"Both the interface part or implementation p
The Freepascal Language Reference (version 3.2.0) states in section 16.2
"As can be seen from the syntax diagram, a unit always consists of a interface and an
implementation part."
and
"Both the interface part or implementation part can be empty, but the keywords Interface and
implementati
I have occasionally had ambiguity with ELSE, for example when you have IF
statements nested inside other IF statements,
sometimes the ELSE is seen as part of the inner, not the outer, or vice
versa, depending on where the one-liners are
but I just resolve it with some BEGIN - END Blocks, even if t
I've been using ELSE in IF statements and in CASE statements for 25
years without realising there was a problem. What a dim-wit I have been.
Martin.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailma
James Richters via fpc-pascal wrote:
I didn’t know there was such a thing as OTHERWISE. Is there any functional
difference between OTHERWISE and ELSE?
No. It is just that OTHERWISE doesn't have the IF-THEN-ELSE ambiguity. Macintosh Pascal compilers
had OTHERWISE but not ELSE. Maybe, OTHERWIS
James Richters via fpc-pascal schrieb am
Do., 14. Dez. 2023, 20:13:
> I didn’t know there was such a thing as OTHERWISE. Is there any
> functional difference between OTHERWISE and ELSE?
>
"otherwise" is what had been defined by ISO Extended Pascal for the
cause-statement.
Aside from not having
I didn’t know there was such a thing as OTHERWISE. Is there any functional
difference between OTHERWISE and ELSE?
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Michael Van Canneyt via fpc-pascal wrote:
On Thu, 14 Dec 2023, Adriaan van Os via fpc-pascal wrote:
I am looking in detail at the syntax diagrams in the Freepascal
Language Reference (version 3.2.0)
Section 13.2.2 discusses the case-statement. Translated to EBNF (WSN)
the syntax is
cas
On Thu, 14 Dec 2023, Adriaan van Os via fpc-pascal wrote:
I am looking in detail at the syntax diagrams in the Freepascal Language
Reference (version 3.2.0)
Section 13.2.2 discusses the case-statement. Translated to EBNF (WSN) the
syntax is
case-statement = "CASE" expression "OF" case
On Thu, Dec 14, 2023 at 5:01 PM Adriaan van Os via fpc-pascal
wrote:
> I always use "OTHERWISE instead of ELSE, but that's my personal
> preference.
+1
Seeing OTHERWISE in source code just makes me smile.
--
Bart
___
fpc-pascal maillist - fpc-pasc
I am looking in detail at the syntax diagrams in the Freepascal Language
Reference (version 3.2.0)
Section 13.2.2 discusses the case-statement. Translated to EBNF (WSN) the
syntax is
case-statement = "CASE" expression "OF" case { ";" case } [ else-part ] [ ";" ]
.
case = constant [ ".." con
11 matches
Mail list logo