Next: , Previous: , Up: iklib pointers   [Index]


6.45.3 Comparison

When applied to pointer objects:

pointers also have pointer=? as specialised comparison predicate.

The following bindings are exported by the libraries (vicare) and (vicare system $foreign) and reexported by the library (vicare ffi).

Function: pointer=? ptr0 ptr
Function: pointer<? ptr0 ptr
Function: pointer>? ptr0 ptr
Function: pointer<=? ptr0 ptr
Function: pointer>=? ptr0 ptr

Compare the pointer arguments as indicated by the name.

Function: pointer!=? ptr0 ptr

The arguments must be pointers. Return #t if the arguments are all different: no two arguments are equal; otherwise return #f. When applied to a single argument: return #f.

Function: pointer-max ptr0 ptr
Function: pointer-min ptr0 ptr

Return the maximal or minimal pointer argument according to pointer<?.