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]
Peter Gerwinski wrote:
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).
Great!
(Hmm ... maybe I should rename `AssignType' to `SetType' as well?)
I would suggest so - because it would give some consistency in the naming conventions.
Best regards, The Chief -------- Dr. Abimbola A. Olowofoyeku (The African Chief) Email: laa12@keele.ac.uk Homepage: http://ourworld.compuserve.com/homepages/African_Chief/ Author of: Chief's Installer Pro 4.01 for Win16 and Win32: http://www.simtel.net/pub/simtelnet/win3/install/chief401.zip