Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the parameterized-function Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Aug 15 05:32:26 2022 GMT+0.
Next: Systems, Previous: The parameterized-function Reference Manual, Up: The parameterized-function Reference Manual [Contents][Index]
PARAMETERIZED-FUNCTION ====================== By Robert Smith This package provides functions which can be parameterized, whose parameters are dispatched at compile time. Parameterized functions are defined by first declaring the "dispatch function". For example, if we wanted a general multiply function that gets dispatched at compile time, we might declare the following: (define-dispatch-function mult (xtype ytype) (x y)) Next, we can define several parameterized functions. (define-parameterized-function mult (:integer :integer) (x y) (* x y)) (define-parameterized-function mult (:integer :string) (x y) (with-output-to-string (s) (loop :repeat x :do (write-string y s)))) (define-parameterized-function mult (:string :integer) (y x) (with-output-to-string (s) (loop :repeat x :do (write-string y s)))) (define-parameterized-function mult (:string :string) (x y) (concatenate 'string x y))) If we call MULT with a constant (quoted) list as the first argument, then it will be expanded, at compile time, to one of the above definitions. If the first argument is not constant, then dispatch will occur at runtime.
Next: Files, Previous: Introduction, Up: The parameterized-function Reference Manual [Contents][Index]
The main system appears first, followed by any subsystem dependency.
Compile-time parameterized functions.
Robert Smith <quad@symbo1ics.com>
BSD 3-clause (See LICENSE)
interface (system).
Next: Packages, Previous: Systems, Up: The parameterized-function Reference Manual [Contents][Index]
Files are sorted by type and then listed depth-first from the systems components trees.
Next: parameterized-function/package.lisp, Previous: Lisp, Up: Lisp [Contents][Index]
parameterized-function (system).
Next: parameterized-function/parameterized-function.lisp, Previous: parameterized-function/parameterized-function.asd, Up: Lisp [Contents][Index]
license (file).
parameterized-function (system).
Previous: parameterized-function/package.lisp, Up: Lisp [Contents][Index]
package.lisp (file).
parameterized-function (system).
Next: Definitions, Previous: Files, Up: The parameterized-function Reference Manual [Contents][Index]
Packages are listed by definition order.
common-lisp.
Next: Indexes, Previous: Packages, Up: The parameterized-function Reference Manual [Contents][Index]
Definitions are sorted by export status, category, package, and then by lexicographic order.
Next: Internals, Previous: Definitions, Up: Definitions [Contents][Index]
Next: Macros, Previous: Public Interface, Up: Public Interface [Contents][Index]
Enables run-time warnings when dynamic dispatch occurs.
Enables compile-time warnings when dynamic dispatch will occur because of non-constant parameters.
Previous: Special variables, Up: Public Interface [Contents][Index]
Define a parameterized function named NAME whose parameter variables are PARAMETERS, whose lambda list is ARGS, and body is BODY.
Previous: Public Interface, Up: Definitions [Contents][Index]
Previous: Definitions, Up: The parameterized-function Reference Manual [Contents][Index]
Jump to: | C D F G M U |
---|
Jump to: | C D F G M U |
---|
Next: Data types, Previous: Functions, Up: Indexes [Contents][Index]
Jump to: | *
S |
---|
Jump to: | *
S |
---|
Jump to: | F L P S |
---|
Jump to: | F L P S |
---|