[fpc-devel] Declare variables inside the code

Joerg Schuelke joerg.schuelke at gmx.de
Wed May 11 09:36:29 CEST 2011


Am Wed, 11 May 2011 09:30:21 +0200 (CEST)
schrieb marcov at stack.nl (Marco van de Voort):

> I always thought the main reason was because C did it that way, and
> C++ is C backwards compat.
> 
> And C did it because it wanted to save stack space in the minis of
> the early seventies. The rest is IMHO revisionism.

Ok, not the reason. But coding security is the reason, you should do
so, if you can. Look at Stroustrup. The reason for pascal not to do so,
is what follows from that, a really complicated stack unwinding, for
example.



More information about the fpc-devel mailing list