Recent

Author Topic: Whats The Point Of A Writable Constant?  (Read 3661 times)

captian jaster

  • Guest
Whats The Point Of A Writable Constant?
« on: August 03, 2010, 11:51:03 pm »
{$WRITEABLECONST OFF}
OR
{$J-}
Whats The Point Of Using These?
http://www.freepascal.org/docs-html/prog/progsu40.html#x47-450001.1.40

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2565
Re: Whats The Point Of A Writable Constant?
« Reply #1 on: August 04, 2010, 12:28:15 am »
It was (IMO a hack) Borland introduced to have a variable with an initialized value.

Also (iirc, i'm not sure about this) when used as local var in a procedure/method it they are static, they "remember" the last value assigned to it in a previous call. (
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018