Previous: , Up: Objects   [Contents][Index]


5.1.4 Object reference predicates

Goblins comes with a variety of predicates for identifying and working with objects. While these are primarily for internal use, they are also helpful when defining custom vat code.

Procedure: local-object-refr? obj

Return #t if obj is an object in the current process, else #f.

Procedure: local-promise-refr? obj

Return #t if obj is a promise in the current process, else #f.

Procedure: local-refr? obj

Return #t if obj is an object or promise in the current process, else #f.

Procedure: remote-object-refr? obj

Return #t if obj is an object in a different process, else #f.

Procedure: remote-promise-refr? obj

Return #t if obj is a promise in a different process, else #f.

Procedure: remote-refr? obj

Return #t if obj is an object or promise in a different process, else #f.

Procedure: promise-refr? maybe-promise

Return #t if maybe-promise is a local or remote promise, else #f.

Procedure: live-refr? obj

Return #t if obj is a local or remote object or promise, else #f.

Procedure: near-refr? obj

Return #t if obj is a near object or promise, else #f.

Procedure: far-refr? obj

Return #t if obj is a far object or promise, else #f.


Previous: Asynchronous calls, Up: Objects   [Contents][Index]