13.07.2015 Views

apple-pascal-1.3-manual

apple-pascal-1.3-manual

apple-pascal-1.3-manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

o Two records of congruent type may be compared, but only under the =and < > operators. They are "equal" if the value of every correspondingfield (including the tag field in variant records) is identical; otherwisethey are "unequal."o When comparing packed arrays and records, you must set all unusedbits to equal values, because they are compared along with themeaningful bits.o Array elements and record fields act in comparisons like ordinaryvariables of their declared types.implicationequivalenceexclusive-orx =, < >) to perform boolean logic. The result is often clearer and morecompact source text. For example, if X and Y are boolean expressions, thenyou can combine them into new boolean expressions as follows:{same as Y DR NOT X}{same as CX AND Y> DR CNOT X AND NOT Y>}{same as CX AND NOT Y> DR {NOT X AND V)}Logical OperationsYou can combine boolean expressions to form more complex booleanexpressions by using these logic operators:NOT ANDORAlthough they can be used with boolean variables and constants, theseoperators are most commonly used with boolean expressions made from therelational operators just discussed. Here are some examples:ex > s> AND ex < 100>ID DR ex = A) NOT CS

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!