[fpc-pascal]ansistring question

Peter Vreman peter at freepascal.org
Fri Jan 3 17:11:12 CET 2003


> Consider the equation in the if statement:
>
> var
>   a, b : ansistring;
>
> begin
>   a := 'hello world..and a lot of other stuff to make this string long';
>   b := a;
>   if a=b then write ('idential');
> end.
>
> How is a=b evaluated?  I hope/presume the text in the string is not
> taken into consideration at all, and that the system can immediately see
> that they are identical.  Am I right?

Yes





More information about the fpc-pascal mailing list