File: test-print.lisp

package info (click to toggle)
cl-contextl 1%3A0.6-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 296 kB
  • ctags: 327
  • sloc: lisp: 3,150; makefile: 29
file content (24 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(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)