[fpc-devel] Writeable consts in delphi mode

zeljko zeljko at holobit.net
Sat Apr 16 09:39:09 CEST 2011


Hi all,
This is first time that I need writeable consts in my app *delphi mode*, so 
tried 
 {$J+} 
 if Something then
   MyConst := 0
 else
  MyConst := 100;
{$J-}

and 

 {$WRITEABLECONST ON} 
 if Something then
   MyConst := 0
 else
  MyConst := 100;
 {$WRITEABLECONST OFF} 

but it does not want to compile.
[linda at houston doc]$ ppc386
Free Pascal Compiler version 2.4.3 [2010/12/18] for i386
Copyright (c) 1993-2010 by Florian Klaempfl

Any hints ?

zeljko







More information about the fpc-devel mailing list