Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defmacro example (v &body body)
- (let ((sym (intern "FOO")))
- `(let ((,sym ,v))
- ,@body)))
- #|
- CL-USER> (example 1 foo)
- 1
- CL-USER> (defpackage :bar (:use :cl))
- #<PACKAGE "BAR">
- CL-USER> (in-package :bar)
- #<PACKAGE "BAR">
- BAR> (cl-user::example 1 foo)
- 1
- |#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement