[fpc-pascal] Is it save to think default value of untouched string is ''?
JoshyFun
joshyfun at gmail.com
Sat Mar 6 22:11:22 CET 2010
Hello FPC-Pascal,
Saturday, March 6, 2010, 10:03:49 PM, you wrote:
>> If you want Delphi-compatible behaviour, you must add {$mode delphi} at the
>> top of your program. In the default mode, "string" is an alias for
>> shortstring instead of ansistring ({$h-} mode).
JM> And even then you should initialize strings. They are not quaranteed to be
JM> empty.
Sorry ... What ? It must be garanteed in ansistring mode! or
everything will simple kboom! There is no way to initialize a non
initialized string.
--
Best regards,
JoshyFun
More information about the fpc-pascal
mailing list