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....@gov.bc.ca -----Original Message----- From: fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Mattias Gaertner Sent: Thursday, April 16, 2009 1:36 PM To: fpc-pascal@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_c...@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@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal