[fpc-pascal] classes initialization

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Mar 25 11:06:17 CET 2008


On 25 Mar 2008, at 04:27, L wrote:

> So.. now I ask..
>
> type something = class
> s: ansistring;
> int:integer
> end;
>
> Is "int" set to zero when it is a local scope var in a procedure  
> created on the heap with Create()?

New class instances are always automatically filled with zeroes upon  
creation.


Jonas



More information about the fpc-pascal mailing list