[fpc-pascal]ansistring question

Mark Emerson mark at angelbase.com
Fri Jan 3 16:28:05 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?

Mark




More information about the fpc-pascal mailing list