[fpc-pascal] Difference between initialization and begin in a unit
Cox, Stuart TRAN:EX
Stuart.Cox at gov.bc.ca
Thu Apr 16 22:44:13 CEST 2009
Could there be one slight difference in that an initialization section
is required if there's going to be a finalization section in the unit?
That is, there can't be a finalization section in the absence of an
initialization section?
Stu Cox
Project Management Technician
Southern Interior Region
Ministry of Transportation and Infrastructure
342-447 Columbia St.,
Kamloops, BC V2C 2T3
p: 250-828-4320
f: 250-828-4229
stuart.cox at gov.bc.ca
-----Original Message-----
From: fpc-pascal-bounces at lists.freepascal.org
[mailto:fpc-pascal-bounces at lists.freepascal.org] On Behalf Of Mattias
Gaertner
Sent: Thursday, April 16, 2009 1:36 PM
To: fpc-pascal at lists.freepascal.org
Subject: Re: [fpc-pascal] Difference between initialization and begin in
a unit
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
_______________________________________________
fpc-pascal maillist - fpc-pascal at lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list