arithmetic/records/records.lisp
Return the slot name described by declaration.
A standard class whose annotated slots retain quantity declarations.
Slot access and instance representation remain ordinary CLOS. The metaclass only makes definition-time meaning inspectable and inheritable. #OXBSAY
The replaceable semantic schema emitted beside one ordinary DEFSTRUCT.
Return the semantic structure schema named by name, or NIL.
Return every quantity-bearing slot declaration in record.
Return record's quantity-bearing slot-name declaration, or NIL.
Define an ordinary structure whose annotated slots publish quantity meaning.
The runtime representation and accessors are still those of DEFSTRUCT. #FLRFU8
(&body body)The declarations BODY makes, read as a rule body, for a rule to include: the way to write a mixin.
PROPERTY: VALUES; -- the property a keyword, the values a list written space-separated.
The semantic meaning of a value, separate from its machine representation.
((agent application-agent) &key)(options &key (default-tensor-order 0))Parse one source declaration plist into a quantity specification. Return NIL when OPTIONS contains no quantity attributes. This is the common source seam used by arithmetic parameters, shader interfaces, and semantic storage declarations; callers retain ownership of their source-specific error conditions and…
(declaration)Return DECLARATION's homogeneous quantity specification, or NIL.
(declaration)Return the source form which established DECLARATION.
A standard class whose annotated slots retain quantity declarations. Slot access and instance representation remain ordinary CLOS. The metaclass only makes definition-time meaning inspectable and inheritable. #OXBSAY
((class quantity-class) (superclass closer-mop:standard-class))(initargs)((class quantity-class) &rest initargs)(declaration)Return DECLARATION's backend or Common Lisp representation type, or NIL.
(declaration)Return DECLARATION's heterogeneous quantity layout, or NIL.
(left right)Logical disjunction of tests and raw truth values.
Logical conjunction of tests and raw truth values.
(left right)((class quantity-class) name direct-slots)Logical negation of one test or raw truth value.
((class quantity-class) &rest initargs)One represented value's machine form and optional semantic meaning. The representation type and quantity judgment are deliberately parallel: two declarations may both use VEC3 while denoting different quantities, and one quantity may acquire different representations in different backends. #OXBSAY
The replaceable semantic schema emitted beside one ordinary DEFSTRUCT.
(name)Return the semantic structure schema named by NAME, or NIL.
(record)Return every quantity-bearing slot declaration in RECORD.
(record slot-name)Construct a meaningful literal.
(name-and-options &body slot-descriptions)Define an ordinary structure whose annotated slots publish quantity meaning. The runtime representation and accessors are still those of DEFSTRUCT. #FLRFU8
A Common Lisp type and a quantity specification answer different questions. The type says which values and storage the implementation sees: vec3, double-float, a specialized array, or a shader :vec3. The quantity says what the represented value means: world position, velocity, duration, or linear colour. Neither…
Intent: let CLOS slots and defstruct slots state quantity meaning beside their ordinary Common Lisp :type, using the declaration protocol in #OXBSAY. Use the MOP where a CLOS class definition genuinely carries the metadata, but do not make it the only representation of the schema. Evidence to gather: – One narrow…
Quantity declarations on ordinary Common Lisp classes and structures.