[fpc-pascal] basic question on begin, end;

Bart bartjunk64 at gmail.com
Wed Sep 23 16:37:14 CEST 2020


On Wed, Sep 23, 2020 at 4:25 PM dano none via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:

for i := start to stop do
  for j := start2 to stop 2 do CompoundStatement

if functionally the same as
for i := start to stop do
begin
  for j := start2 to stop 2 do CompoundStatement
end;

A Compound Statement is a statement that consists of more than one
statement and as such must be enclosed in a begin/end pair.

Bart



-- 
Bart


More information about the fpc-pascal mailing list