1 21 22 package org.armedbear.lisp; 23 24 public final class unbound_slot_instance extends Primitive1 26 { 27 private unbound_slot_instance() 28 { 29 super("unbound-slot-instance"); 30 } 31 32 public LispObject execute(LispObject arg) throws ConditionThrowable 33 { 34 if (arg instanceof UnboundSlot) 35 return ((UnboundSlot)arg).getInstance(); 36 return signal(new TypeError(arg, Symbol.UNBOUND_SLOT)); 37 } 38 39 private static final unbound_slot_instance CELL_ERROR_NAME = 40 new unbound_slot_instance(); 41 } 42 | Popular Tags |