Skip to content

Support for system virtual slots.

Didier Verna requested to merge dverna/asdf:master into master

Here's a implementation of system virtual slots, as discussed in MR103.

A system virtual slot is a slot the value of which is read either from the system directly, or potentially from its primary system if needed. It avoids duplicating meta-information (license, author etc.) in secondary systems.

As a side-effect of this implementation, the functions system{-long}-description now behave virtually, as opposed to component{-long}-description. Also, a new function called system-version is provided, which also behaves virtually, as opposed to component-version.

2018-09-18 Didier Verna

* interface.lisp (:asdf/interface): Export SYSTEM-VERSION.
* system.lisp (:asdf/system): Ditto.
(system): Only automatically define generic writers for virtual
(*system-virtual-slots*): New variable. List the virtual slot names.
(system-virtual-slot-value): New function. General virtual slot
(define-system-virtual-slot-reader): New macro. Define specific
virtual slot readers based on the above function.
(define-system-virtual-slot-readers): New macro. Define all
specific virtual slot readers.
(system-license): New ad-hoc virtual slot reader, defined manually
in addition to system-licenCe (note the 'c').

Merge request reports