I am a delphi programmer. Nearly all Delphi code relies on the fields of an object being set to zero automatically. If gpc wishes to be compatible with Delphi it must have the option to do the same.
In Delphi you cannot use an abject without calling its constructor so the initialisation of virtual methods is always done.
Theo Carr-Brion
-----Original Message----- From: Jason Burgon [mailto:gvision@ntlworld.com] Sent: 04 June 2003 08:58 To: gpc@gnu.de Subject: Re: Overriding non-virtual methods by
Prof A Olowofoyeku (The African Chief) wrote:
PS: I know that, under BP and Delphi, a call to the constructor automatically zeroes out all the object's fields as appropriate (e.g., pointers are set to Nil, numbers are set to zero, and strings are set to empty).
This is not the case with BP or Delphi "object"s. It is Turbo Vision's TObject.Init (a constructor) that provides this functionality; it is not an inherent feature of an "object". In Delphi, all "class"es must be a descendant of TObject (a special class known to the compiler), and this also probably does field zeroing in Delphi classes.
Jay
Jason Burgon. Author of Graphic Vision Version 2.21 available from: http://homepage.ntlworld.com/gvision