[fpc-pascal] Difference between initialization and begin in a unit
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Apr 16 22:35:46 CEST 2009
On Sun, 12 Apr 2009 20:11:42 -0700 (PDT)
leledumbo <leledumbo_cool at yahoo.co.id> wrote:
>
> Might be a stupid question, but it's nowhere mentioned in the
> documentation though allowed. What are the differences between:
>
> unit A;
>
> interface
>
> implementation
>
> initialization
> <initialization code>
>
> end.
>
> and:
>
> unit B;
>
> interface
>
> implementation
>
> begin
> <initialization code>
>
> end.
AFAIK it is syntactic sugar. They are the same.
Mattias
More information about the fpc-pascal
mailing list