1.1.37 $J or $WRITABLECONSTS : Allow typed consts

This boolean switch tells the compiler whether or not typed constants are allowed. The default is to allow typed constants.

The following statement will switch off typed constants:

{$WRITABLECONST OFF}

After this switch, the following statement will no longer compile:

Const  
  MyString : String = ’Some nice string’;

But an initialized variable will still compile:

Var  
  MyString : String = ’Some nice string’;