chickadee » sdl2 » struct-eq?

struct-eq? obj1 obj2procedure

Returns #t if both objects refer to the same memory location. The objects can be struct record instances, pointers, locatives, or the value #f (equivalent to a null pointer).

This procedure can be used with any struct record type provided by this library, or related libraries such as sdl2-image and sdl2-ttf.

This procedure is the only reliable way to compare the identities of struct records provided by this library or related libraries. Other procedures, such as eq? or equal?, are not guaranteed to work correctly. They may break in the future due to changes in the implementation of struct records.