On 19 Mar 01, at 19:36, Markus Gerwinski wrote:
[...]
In Delphi, from what the help file says, the program should not compile if the typecasting is wrong. GPC could do the same.
??? How should the compiler know? I mean, the object type of a pointer at runtime is a matter of runtime.
The compiler should know what an object type is and whether an object that purports to point to it is a pointer to the right type.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) Author of: Chief's Installer Pro for Win32 http://www.bigfoot.com/~African_Chief/chief32.htm Email: African_Chief@bigfoot.com