[fpc-pascal] Can variables be declared within a block?
Andreas Berger
Andreas at TheBergerClan.org
Mon Oct 18 23:46:04 CEST 2010
> for (int i = 0;...)
> Can't see anything wrong. I use declaration of variables inside blocks quite often in Java and C++ but have never missed it in pascal. Please enlighten me. What is so bad about creating temporary variables inside blocks instead of the beginning of a function in a language that supports it?
>
> R.
But it should make you wonder why this is no longer allowed in the
latest C++ standards.
More information about the fpc-pascal
mailing list