Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A asdf
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 51
    • Issues 51
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 17
    • Merge requests 17
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • asdf
  • asdf
  • Merge requests
  • !105

Closed
Created Sep 18, 2018 by Didier Verna@dverna
  • Report abuse
Report abuse

Support for system virtual slots.

  • Overview 17
  • Commits 1
  • Changes 2

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 didier@didierverna.net

* interface.lisp (:asdf/interface): Export SYSTEM-VERSION.
* system.lisp (:asdf/system): Ditto.
(system): Only automatically define generic writers for virtual
slots.
(*system-virtual-slots*): New variable. List the virtual slot names.
(system-virtual-slot-value): New function. General virtual slot
reader.
(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').
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: master