Operations on Object

2 min read

2 min read

2 min read

2 min read

2 min read

2 min read

2 min read

2 min read

2 min read

Every Slice interface derives from Object (Implicit Inheritance from Object). Object is a Slice keyword, so you cannot define it in Slice; this is what its definition would look like if you could:

Slice
sequence<string> StringSeq;
interface Object // pseudo-Slice: Object is a keyword
{
idempotent void ice_ping();
idempotent bool ice_isA(string typeId);
idempotent string ice_id();
idempotent StringSeq ice_ids();
}

The four operations are standard Slice operations, mapped with the standard mapping rules. You call them on any proxy, like the operations of your own interfaces:

OperationDescription
Tests whether the target object can be reached.
Tests whether the target object implements the Slice interface with the given type ID; checkedCast calls it.
Returns the type ID of the most-derived Slice interface the target object implements.
Returns the type IDs of all the Slice interfaces the target object implements, in alphabetical order.