Documentation
¶
Overview ¶
Package generic contains the functions and types to support generics.
Index ¶
- Variables
- func DefCallerMethod(qualifier string, caller slip.Caller, fd *slip.FuncDoc) *slip.Method
- func DefClassMethod(obj slip.Class, name, daemon string, caller slip.Caller) slip.Object
- func ObjectLoadForm(obj slip.Object, follow bool) (form slip.Object)
- type Aux
- type CallNextMethod
- type ComputeApplicableMethods
- type Defgeneric
- type Defmethod
- type FindMethod
- type FunctionKeywords
- type HasDocs
- type HasMethods
- type MakeLoadForm
- type MethodQualifiers
- type NextMethodP
- type NoApplicableMethod
- type NoNextMethod
- type RemoveMethod
- type SlotMissing
- type SlotUnbound
Constants ¶
This section is empty.
Variables ¶
var ( // Pkg is the Class package. Pkg = slip.Package{ Name: "generic", Nicknames: []string{"generic"}, Doc: "Home of symbols defined for the generic functions, variables, and constants.", PreSet: slip.DefaultPreSet, } )
Functions ¶
func DefCallerMethod ¶
DefCallerMethod defines a method for a caller.
func DefClassMethod ¶
DefClassMethod defines a direct method on a class.
Types ¶
type Aux ¶
type Aux struct {
// contains filtered or unexported fields
}
Aux encapsulates the auxiliary data for a generic function.
type CallNextMethod ¶
CallNextMethod represents the call-next-method function.
type ComputeApplicableMethods ¶
ComputeApplicableMethods represents the compute-applicable-methods function.
type Defgeneric ¶
Defgeneric represents the class-name function.
type FindMethod ¶
FindMethod represents the find-method function.
type FunctionKeywords ¶
FunctionKeywords represents the function-keywords function.
type HasDocs ¶
type HasDocs interface {
// Docs returns the documentation for the object.
Docs() string
}
HasDocs is an interface for objects that have documentation.
type HasMethods ¶
type HasMethods interface {
// GetMethod returns the method if it exists.
GetMethod(name string) *slip.Method
// Methods returns a map of the methods.
Methods() map[string]*slip.Method
}
HasMethods is an interface for objects that have documentation.
type MakeLoadForm ¶
MakeLoadForm represents the make-load-form function.
type MethodQualifiers ¶
MethodQualifiers represents the method-qualifiers function.
type NextMethodP ¶
NextMethodP represents the next-method-p function.
type NoApplicableMethod ¶
NoApplicableMethod represents the class-name function.
type NoNextMethod ¶
NoNextMethod represents the class-name function.
type RemoveMethod ¶
RemoveMethod represents the remove-method function.
type SlotMissing ¶
SlotMissing represents the slot-missing function.
type SlotUnbound ¶
SlotUnbound represents the slot-unbound function.