[fpc-pascal] Empty string
jonas.maebe at elis.ugent.be
Fri Mar 7 14:54:06 CET 2008
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 ...
> 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.
More information about the fpc-pascal