Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2011-04

Writeable consts in delphi mode

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

zeljko
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.
doc]$ ppc386
Free Pascal Compiler version 2.4.3 [2010/12/18] for i386 Copyright (c) 1993-2010 by Florian Klaempfl

Any hints ?

zeljko

Reply by email