[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:

  a, b : ansistring;

  a := 'hello world..and a lot of other stuff to make this string long';
  b := a;
  if a=b then write ('idential');

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?


More information about the fpc-pascal mailing list