Conclusion: If the strings are known at compile time, the most efficient way to store them without gaps is to use the Pascal Macro Compiler.
A very bold claim indeed - and I am not sure how you can make such a claim, without seeing every string-handling routine that every programmer has written.
Using the Pascal Macro Compiler you can store the strings with no gaps and no wasted space whatsoever. I don't see how you can improve on that.
Moreover, the method requires no code, makes no calls, and takes no time at run time. I don't see how you can improve on that.
Frank Rubin
On 13 Jul 2005 at 3:07, Contestcen@aol.com wrote:
Conclusion: If the strings are known at compile time, the most efficient way to store them without gaps is to use the Pascal Macro Compiler.
A very bold claim indeed - and I am not sure how you can make such a claim, without seeing every string-handling routine that every programmer has written.
Using the Pascal Macro Compiler you can store the strings with no gaps and no wasted space whatsoever. I don't see how you can improve on that.
This assumes that you know precisely what the compiler is doing with your macros, and that compiler optimisations do not achieve better results than what you have hand-coded.
Moreover, the method requires no code, makes no calls, and takes no time at run time. I don't see how you can improve on that.
Ditto.
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.greatchief.plus.com/