[fpc-pascal] SetLength procedure

J├╝rgen Hestermann juergen.hestermann at gmx.de
Sun Jul 27 19:58:33 CEST 2014

Am 2014-07-27 19:28, schrieb Andreas Berger:
> I have noticed quit often here that instead of answering the question people try to reason why in the world the author of the question would even want to do this. Would it not be better to tell him how to do it or at the most say "I don't know". I know there are times when you want to prevent someone from making a serious mistake, but this is not the case here.

I know what you mean but in this case I find it worth mentioning that the 2 line code *is* easier to read.
And for me it would be wasting time to somehow find a solution for his problem instead of simply
using the 2 line code and use the saved time for real problems.
The 2 line code is definitely more in the spirit of Pascal than
obscuring what happens with a (not so clear) function.

But of course, everybody can do what he wants.
It was just meant in the sense of an advice.

More information about the fpc-pascal mailing list