CoercedSlot
From Erights
Revision as of 04:13, 8 November 2008 by Kevin Reid (Talk | contribs)
This is a module used by the guard-based auditing proposal, though it can stand alone.
CoercedSlots implement the Slot protocol.
Contents |
Maker
run/1
run(guard, specimen, ejector) :CoercedSlot
Makes a CoercedSlot holding the result of guard.coerce(specimen, ejector).
attempt/1
attempt(guard, value) :any[CoercedSlot
As run/1 unless the guard ejects, in which case the resulting slot's guard will be LostApproval[guard].
Protocol
getGuard/0
- Signature: getGuard() :Guard
Returns the guard that this slot's value was coerced, or otherwise approved, by.