[fpc-devel] Questions on TStringList.Find change (Mantis 28744)

Ondrej Pokorny lazarus at kluug.net
Tue Mar 22 08:18:58 CET 2016


On 22.03.2016 8:01, Michael Van Canneyt wrote:
> 1. I change the code to raise an exception instead (as was my original 
> plan)

This is the way to go. False should be returned if nothing was found.
In case there are problems with starting parameters (or string list 
status or whatever), an exception should be thrown instead of returning 
false as if nothing was found.

Ondrej



More information about the fpc-devel mailing list