Next: , Previous: , Up: Structs   [Contents][Index]


14.5.3 Struct Comparison

The equality operator (==) and the inequality operator (!=) can be applied to struct values. Examples:

(poke) E_eof == E_eof
1
(Poke) Packet { payload=0x3 } != Packet { payload=0x4 }
1

The struct values are compares recursively.