Joerg Schuelke schrieb:

To decide that a declaration is a statement and can occur everywhere
where a statement is required, is not that small you think. This has
many consequences, influencing the whole code generation process.

Think about exceptions and stack rewinding.

Right, but a compiler can allocate local variables as appropriate. E.g. managed variables can go into the main variable block, while unmanaged variables can be overlaid.

Think about efficiency of code generating, for many developers a reason
for developing in pascal.

Think of JIT compilers, that generate code on the fly, in no noticeable time.

DoDi

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to