Last active
December 17, 2015 16:24
-
-
Save eshamster/feb039c084121a1b2628 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(in-package :cl-user) | |
(defpackage test-ps-eval-order | |
(:use :cl | |
:parenscript) | |
(:export :print-ps)) | |
(in-package :test-ps-eval-order) | |
(eval-when (:compile-toplevel :execute :load-toplevel) | |
(defpsmacro test-defpsmacro () | |
`(setf ok "expanded by test-defpsmacro"))) | |
(ps (defmacro test-defmacro-in-ps () | |
`(setf ok "expanded by test-defmacro-in-ps"))) | |
(defun print-ps () | |
(princ "----- From test-ps-eval-order::print-ps -----") | |
(print (ps (test-defpsmacro))) | |
(print (ps (test-defmacro-in-ps))) | |
(fresh-line)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment