This boolean switch determines whether code to test the SELF pointer is inserted in methods. By default it is OFF. For example:
{$OBJECTCHECKS ON}
If the SELF pointer is NIL a run-time error 210 (range check) will be generated. In case of typecasts, an implicit type check will be generated in the ON state, the type check will be omitted in the OFF state.
This switch is also activated by the -CR command line option, so you can undo the effects of -CR on objects with
{$OBJECTCHECKS OFF}