|
|||||
Related Concepts | ||
operator |
==, !== |
Return type: Switch
Returns: True if the records are identical, otherwise false.
Syntax
record reference == record reference
You can use the reference equality operator ==
to determine if two record variables reference the same variable. This is different from comparing the values of the two records. The reference equality operator tests whether two record variables reference the same record existing at the same place in memory.
declare type point field integer x field integer y process local point alpha local point omega set omega to alpha do when omega == alpha output "Alpha and omega refer to the same record.%n" else output "Alpha and omega refer to different records.%n" done
The negative form of the reference equality operator, !==
reverses the meaning of the test.
Related Concepts |
Copyright © Stilo International plc, 1988-2010.