[previous] [up] [next]     [contents] [index]
Next: Classes and Objects Up: Structures Previous: Creating Subtypes

Structure Utilities

Structures can only be created and changed with the constructor and setter procedures created by struct, but structures are not opaque. These utility procedures work with all structure instance values:

Two structure values are eqv? if and only if they are eq?. Two structure values are equal? if they have the same structure type and their corresponding field values are all equal?.

Each kind of value returned by struct has a recognizing predicate:



PLT