Re: [fpc-pascal] Run-time checks

2016-07-04 Thread Jonas Maebe
On 04/07/16 19:35, Tobias Giesen wrote: Is it possible to check class typecasts such as TMyIniFile(AnIniFile) ? Yes, by compiling with -CR. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Run-time checks

2016-07-04 Thread Tobias Giesen
Hello, I have a few questions about run-time checks. Is it possible to check class typecasts such as TMyIniFile(AnIniFile) ? Or only "AnIniFile as TMyIniFile"? If only the second, it would be cool if it were possible to disallow the first kind of typecast. Cheers, Tobias