sheeple

API Reference

sheeple

Cheeky prototypes for Common Lisp

%SHEEPLE-GARBAGE

  • Function GC (&key full verbose)
    Initiates a garbage collection.
  • Function MAKE-WEAK-POINTER (object)
    Creates a new weak pointer which points to OBJECT. For portability reasons, OBJECT most not be NIL.
  • Function WEAK-POINTER-P (object)
    Returns true if OBJECT is a weak pointer and NIL otherwise.
  • Function WEAK-POINTER-VALUE (weak-pointer)
    If WEAK-POINTER is valid, returns its value. Otherwise, returns NIL.
  • Function MAYBE-MAKE-WEAK-POINTER (x)
  • Function MAYBE-WEAK-POINTER-VALUE (x)
  • Function MAKE-WEAK-HASH-TABLE (&rest args &key weakness &allow-other-keys)
    Returns a new weak hash table. In addition to the standard arguments accepted by CL:MAKE-HASH-TABLE, this function an extra keyword :WEAKNESS that determines the kind of weak table it should create. WEAKNESS can be one of :KEY, :VALUE, :KEY-OR-VALUE, :KEY-AND-VALUE. TG::MAKE-HASH-TABLE is available as an alias for this function should you wish to import it into your package and shadow CL:MAKE-HASH-TABLE.
  • Function HASH-TABLE-WEAKNESS (ht)
    Returns one of NIL, :KEY, :VALUE, :KEY-OR-VALUE or :KEY-AND-VALUE.
  • Function FINALIZE (object function)
    Pushes a new FUNCTION to the OBJECT's list of finalizers. FUNCTION should take no arguments. Returns OBJECT. For portability reasons, FUNCTION should not attempt to look at OBJECT by closing over it because, in some lisps, OBJECT will already have been garbage collected and is therefore not accessible when FUNCTION is invoked.
  • Function CANCEL-FINALIZATION (object)
    Cancels all of OBJECT's finalizers, if any.

SHEEPLE

  • Condition SHEEPLE-WARNING  (SHEEPLE-CONDITION, WARNING)
  • Condition SHEEPLE-ERROR  (SHEEPLE-CONDITION, ERROR)
  • Condition TOPOLOGICAL-SORT-CONFLICT  (SHEEPLE-ERROR)
  • Condition OBJECT-PRECEDENCE-ERROR  (SHEEPLE-ERROR)
    Signaled whenever there is a problem computing the precedence list.
  • Condition OBJECT-PROPERTY-ERROR  (SHEEPLE-ERROR)
    Encompasses all that can go wrong with properties.
  • Condition UNBOUND-PROPERTY  (OBJECT-PROPERTY-ERROR)
  • Condition UNBOUND-DIRECT-PROPERTY  (UNBOUND-PROPERTY)
  • Condition CLOBBERING-FUNCTION-DEFINITION  (SHEEPLE-WARNING)
  • Condition SHEEPLE-MESSAGE-ERROR  (SHEEPLE-ERROR)
    Encompasses all that can go wrong with messages.
  • Condition INSUFFICIENT-MESSAGE-ARGS  (SHEEPLE-MESSAGE-ERROR)
  • Condition NO-SUCH-MESSAGE  (SHEEPLE-MESSAGE-ERROR)
  • Condition MESSAGE-LAMBDA-LIST-ERROR  (SHEEPLE-MESSAGE-ERROR)
  • Condition SHEEPLE-REPLY-ERROR  (SHEEPLE-MESSAGE-ERROR)
    Encompasses all that can go wrong with replies.
  • Condition REPLY-ARGUMENT-CONFLICT  (SHEEPLE-REPLY-ERROR)
  • Condition AUTOMATIC-MESSAGE-CREATION  (SHEEPLE-WARNING, STYLE-WARNING)
  • Condition REPLY-LAMBDA-LIST-CONFLICT  (SHEEPLE-REPLY-ERROR)
  • Condition NO-APPLICABLE-REPLY  (SHEEPLE-REPLY-ERROR)
  • Condition NO-NEXT-REPLY  (SHEEPLE-REPLY-ERROR)
  • Condition NO-PRIMARY-REPLY  (SHEEPLE-REPLY-ERROR)
  • Condition SPECIALIZED-LAMBDA-LIST-ERROR  (SHEEPLE-ERROR)
  • Variable =T=
    (make-symbol "=t=")
  • Variable =STANDARD-OBJECT=
    (make-symbol "=standard-object=")
  • Variable =STANDARD-METAOBJECT=
    (make-symbol "=standard-metaobject=")
  • Struct OBJECT
    MOLD
    PRECEDENCE-LIST
    PROPERTY-VALUES
    ROLES
  • Function OBJECTP (object)
  • Function OBJECT-METAOBJECT (object)
  • Function OBJECT-PARENTS (object)
  • Function OBJECT-PRECEDENCE-LIST (object)
    Returns the full precedence list for OBJECT
  • Function (setf OBJECT-PARENTS) (new-parents object)
  • Function (setf OBJECT-METAOBJECT) (new-metaobject object)
  • Function PARENTP (maybe-parent child)
    A parent is a object directly in CHILD's parent list.
  • Function ANCESTORP (maybe-ancestor descendant)
    A parent is a object somewhere in CHILD's precedence list.
  • Function CHILDP (maybe-child parent)
    A child is a object that has PARENT in its parent list.
  • Function DESCENDANTP (maybe-descendant ancestor)
    A descendant is a object that has ANCESTOR in its precedence list.
  • Function OBJECT (&rest all-keys &key parents (metaobject =standard-metaobject=) &allow-other-keys &aux (object (maybe-std-allocate-object metaobject)))
    Returns a new object delegating to PARENTS, with metaobject METAOBJECT. ALL-KEYS is passed on to INIT-OBJECT.
  • Function CLONE (object &optional (metaobject (%object-metaobject object)))
    Creates a object with the same parents and metaobject as OBJECT. If supplied, METAOBJECT will be used instead of OBJECT's metaobject, but OBJECT itself remains unchanged.
  • Macro DEFOBJECT (objects &optional ((&rest properties) nil) &rest options)
    Standard object-generation macro.
  • Macro DEFPROTO (name &optional objects ((&rest properties) nil) &rest options)
    Words cannot express how useful this is.
  • Function DIRECT-PROPERTY-VALUE (object property-name)
    Returns the property-value set locally in OBJECT for PROPERTY-NAME. If the property is not set locally, a condition of type `unbound-property' is signaled.
  • Function PROPERTY-VALUE (object property-name)
    Returns the property-value for PROPERTY-NAME found first in OBJECT's hierarchy list. If the value does not exist in the hierarchy list, a condition of type `unbound-property' is signaled.
  • Function (setf DIRECT-PROPERTY-VALUE) (new-value object property-name &rest options)
    Tries to set a direct property value for OBJECT. If it succeeds, returns T, otherwise NIL.
  • Function (setf PROPERTY-VALUE) (new-value object property-name &rest options &key (reader nil readerp) (writer nil writerp) accessor)
    Sets NEW-VALUE as the value of a direct-property belonging to OBJECT, named PROPERTY-NAME.
  • Function PROPERTY-MAKUNBOUND (object property-name)
    Removes OBJECT's direct property named PROPERTY-NAME. Signals an error if there is no such direct property. Returns OBJECT.
  • Function REMOVE-PROPERTY (object property-name)
    Removes OBJECT's direct property named PROPERTY-NAME. Signals an error if there is no such direct property. Returns OBJECT.
  • Function REMOVE-ALL-DIRECT-PROPERTIES (object)
    Wipes out all direct properties and their values from OBJECT.
  • Function DIRECT-PROPERTY-P (object property-name)
    Returns T if OBJECT has a property called PROPERTY-NAME as a direct property. NIL otherwise.
  • Function DIRECT-PROPERTIES (object)
    Returns a list of the names of OBJECT's direct properties -- ie, only ones which have been set directly in OBJECT using (setf property-value). The consequences of side-effecting this returned list are undefined.
  • Function AVAILABLE-PROPERTIES (object)
    Returns a list of the names of all properties available to OBJECT, including inherited ones.
  • Function OBJECT-NICKNAME (object)
    Returns OBJECT's nickname
  • Function (setf OBJECT-NICKNAME) (new-nickname object)
    Sets OBJECT's nickname to NEW-NICKNAME
  • Macro WITH-PROPERTIES (properties object &body body)
  • Variable =BOXED-OBJECT=
  • Variable =SYMBOL=
  • Variable =SEQUENCE=
  • Variable =ARRAY=
  • Variable =NUMBER=
  • Variable =CHARACTER=
  • Variable =FUNCTION=
  • Variable =HASH-TABLE=
  • Variable =PACKAGE=
  • Variable =PATHNAME=
  • Variable =READTABLE=
  • Variable =STREAM=
  • Variable =LIST=
  • Variable =NULL=
  • Variable =CONS=
  • Variable =VECTOR=
  • Variable =BIT-VECTOR=
  • Variable =STRING=
  • Variable =COMPLEX=
  • Variable =INTEGER=
  • Variable =FLOAT=
  • Function BOX-TYPE-OF (x)
    Maps the type of X to a built-in object.
  • Function FIND-BOXED-OBJECT (object)
    Finds a previously-boxed object in the boxed object table. Returns the boxed object, or NIL if OBJECT has not been boxed.
  • Macro DEFMESSAGE (name lambda-list &rest options &environment env)
  • Macro UNDEFMESSAGE (name)
  • Function PARTICIPANTP (object reply)
    Checks if OBJECT is actually involved in dispatching REPLY
  • Function AVAILABLE-REPLIES (object)
  • Macro DEFREPLY (&whole whole name lambda-list &body body)
  • Macro UNDEFREPLY (name &rest args)

SHEEPLE-METAOBJECT-PROTOCOL

No exported symbols.

SHEEPLE-USER

No exported symbols.