Changeset 33179 in project


Ignore:
Timestamp:
02/12/16 05:24:09 (4 years ago)
Author:
John Croisant
Message:

sdl2: Docs for struct-eq?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/sdl2

    r33174 r33179  
    282282way. Instead, you use certain SDL functions to work with them, such as
    283283{{create-window!}} and {{destroy-window!}}.
     284
     285
     286
     287=== General Struct Management
     288
     289<procedure>(struct-eq? obj1 obj2) → boolean</procedure>
     290
     291Returns #t if both objects refer to the same memory location.
     292The objects can be struct record instances, pointers, locatives,
     293or the value #f (equivalent to a null pointer).
     294
     295This procedure can be used with any struct record type provided by this library,
     296or related libraries such as [[/egg/sdl2-ttf|sdl2-ttf]].
     297
     298This procedure is the only reliable way to compare the identities of struct records
     299provided by this library or related libraries.
     300Other procedures, such as {{eq?}} or {{equal?}}, are not guaranteed to work correctly.
     301They may break in the future due to changes in the implementation of struct records.
    284302
    285303
Note: See TracChangeset for help on using the changeset viewer.