On 03 Mar 2008, at 17:16, Damien Gerard wrote:
In any programs, a lot of tests on empty strings are made.
The following made the work :
if Length(s) <> 0 then ...
or
if s <> '' then ...
In a lot of cases, the real length is no needed, just to know if the
string is empty or not.
That is what "if s <> '' then" checks for. This is already generated
as optimally as possible.
Jonas
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal