According to The African Chief:
and must be prevented. The Length field of a string should only be accessible read-only.
I can think of many uses for this facility.
Okay, but nevertheless I will fix this bug and provide a procedure to set the length instead.
BTW: the new function you refer to (AssignLength) exists in 32-bit Delphi as "SetLength" - any chance of renaming your function to "SetLength"? (for compatibility with Delphi).
While I like the name `AssignLength' (in analogy to `AssignType') for this function, I agree that it is reasonable to rename it to `SetLength' if this means increased compatibility to other compilers (Delphi in this case). (Hmm ... maybe I should rename `AssignType' to `SetType' as well?)
Greetings,
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [971005] maintainer GNU Pascal [971001] - http://home.pages.de/~gnu-pascal/ [971005]