On 21-11-2014 18:46, Stefan Heymann wrote:
>>> "All statements except the BEGIN…END blocks must be separated by a 
>>> semicolon.."
>>> - terminated, not separated.
>>
>> I think separated is actually correct here (although terminated is as
>> well). The statement is terminated by the semi-colon, but multiple
>> statements are separated by the semi-columns
>
> In Pascal, the semi-colon separates two statements. That's why you can
> omit that semi-colon directly before the END keyword of a compound
> statement.
>
>    begin
>      One;
>      Two    // no semi-colon here is correct Pascal
>    end;
>
> I think in PSQL the semi-colon is there to terminate a statement, and
> it is also required to be there (except after END).
>
>    begin
>      One;
>      Two    -- syntax error in PSQL
>    end;

Separators are purely for the parser, and although you could leave it 
out for the last statement (as done in Pascal), most languages actually 
don't to be consistent. That doesn't change the meaning.

Mark
-- 
Mark Rotteveel

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Firebird-docs mailing list
Firebird-docs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-docs

Reply via email to