Ok, two questions for the example above: - how do you maintain backward compatibility? - how do you load a plain old ansi file?
You could alter the LoadFromFile(), LoadFromStream(), SaveToFile(), SaveToStrwam() routines like below:
procedure TStringList.LoadFromFile(AFileName: TFilename; const ACharSet: TCharSetKind = csSomeDefaultCharset);
This way, code using these would compile and work as usual. Of course, descendants would need to be modified --a one time modification. _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel