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 o 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';

Illegal Compiler Directive

Plural or singular, makes no difference, this one is still "Illegal"...
Warning: Illegal compiler directive "$WRITABLECONSTS"
Warning: Illegal compiler directive "$WRITABLECONST"

-- Unregistered Visitor on February 23, 2007 11:11 PM (view details)