this would equal following code :

       if (assigned(loc)) then begin
          ;
          ;;;;;
          // somecode
       end;

  wiche one can do unpunished until infinity ...

I remember from my school days another thing, wich was the optional
semi-colon before an 'end'-statement .
It is a heritage from standard pascal for as far as I can remember, since we
were programming on a PDP-11 VAX machine in those days ...

8-) Lode


----- Original Message ----- 
From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
To: "'Delphi-Talk Discussion List'" <[email protected]>
Sent: Wednesday, November 02, 2005 6:49 PM
Subject: strange coding


> Hello,
>
> By accident a came across a strange coding:
>
>       if (assigned(loc)) then begin;
>          // somecode
>       end;
>
> Note the ';' after the begin !
>
> This compiles fine. Wy ? Is this a minor flaw, or has this some Pascal
> history ?
>
> ---
> Rgds, Wilfried
> http://www.mestdagh.biz
>
> __________________________________________________
> Delphi-Talk mailing list -> [email protected]
> http://www.elists.org/mailman/listinfo/delphi-talk
>

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to