[fpc-pascal] Illogical automatic dereferencing
Marco van de Voort
marcov at stack.nl
Mon Oct 12 14:31:11 CEST 2009
In our previous episode, Jürgen Hestermann said:
> > The beauty of the current solution is that static and dynamic arrays can
> > be substituted with each other, simple by changing the declaration, and
> > adding/removing a setlength. All other code can be left as it is.
> > If you needed the "^" for dyn arrays everywhere, then you would have to
> > make huge changes throughout your code, if ever you needed to change
> > between static and dynamic arrays.
>
> What is the problem with search-and-replace? If you are forced to change
> your code you will have a closer look at it and may get aware of side
> effects of the change.
Yes, and if I had enough time I'd even write a poem about it :-)
More information about the fpc-pascal
mailing list