Size Of Objects - Revisited
Sat, 09 Aug 1997 15:37:48 +0800
You cannot use SizeOf with an object TYPE. See test program below:
Type
TObj = Object
Constructor Init;
End;
Constructor TObj.Init;
Begin
End;
Var
O : TObj;
Begin
O.Init;
WriteLn(SizeOf(O)); { This Works (Only after Init) }
WriteLn(SizeOf(TObj)); { This calls Abort! }
End.
Sayonara
________________________
| _) | | e-mail: bernie@icenet.com.au
|___)ernhard |_|schirren ptschirrenb@cc.curtin.edu.au
www: www.geocities.com/CollegePark/Quad/8070/
Bernhard Tschirren (bernie@icenet.com.au)
HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada -
Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es