Re: [fpc-pascal] Difference between initialization and begin in a unit

2009-04-16 Thread Mattias Gaertner
On Thu, 16 Apr 2009 13:44:13 -0700 "Cox, Stuart TRAN:EX" wrote: > 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

Re: [fpc-pascal] Difference between initialization and begin in a unit

2009-04-16 Thread Benedikt Schindler
Unit B should just work if it is named "Programm B" In a Unit there didn't just exist a begin. (as far as i know my programms :) ) The initialization section is called when the unit is linked the first time into the programm by a "uses" class. so it is called before everithing else is going o

RE: [fpc-pascal] Difference between initialization and begin in a unit

2009-04-16 Thread Cox, Stuart TRAN:EX
rtner 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 wrote: > > Might be a stupid question, but it's nowhere mentioned in

Re: [fpc-pascal] Difference between initialization and begin in a unit

2009-04-16 Thread Mattias Gaertner
On Sun, 12 Apr 2009 20:11:42 -0700 (PDT) leledumbo 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 > > > end. > > and: > > unit B;

[fpc-pascal] Difference between initialization and begin in a unit

2009-04-12 Thread leledumbo
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 end. and: unit B; interface implementation begin end. -- View this message in context: http://www.nabble.