[fpc-pascal] Global static vars in a procedure or function

Rainer Stratmann RainerStratmann at t-online.de
Mon May 9 21:14:36 CEST 2011


Am Monday 09 May 2011 20:54:42 schrieb Jonas Maebe:
> On 09 May 2011, at 20:48, Rainer Stratmann wrote:
> > Is this possible like in C ?
>
> A typed constant declared inside a procedure/function will behave like
> that.
Ah, thanks. Does Delphi also behave like this?

I did not find it in the documentation. May be it can be added there.

http://www.freepascal.org/docs-html/ref/refse10.html
http://wiki.freepascal.org/Const

Also here it is worth to mention:
http://www.freepascal.org/docs-html/ref/refse20.html#x52-590004.2

>
> Jonas
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal





More information about the fpc-pascal mailing list