File: test-print.lisp

package info (click to toggle)
cl-contextl 1%3A20231021.git3d5fbff-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 336 kB
  • sloc: lisp: 3,148; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 588 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(asdf:oos 'asdf:load-op :contextl)
(in-package :contextl-user)

(deflayer test-layer)
(print (find-layer 'test-layer))
(print (find-layer-class 'test-layer))

(define-layered-class test-class () ())
(print (find-class 'test-class))

(define-layered-function test-function (a b c))
(print (layered-function-definer 'test-function))

(define-layered-method test-function ((a integer) (b cons) c)
  42)

(define-layered-method test-function :in test-layer :around ((a integer) (b cons) c)
  4711)

(pprint (generic-function-methods (layered-function-definer 'test-function)))

(print :done)