Skip to content

Instantly share code, notes, and snippets.

@miyamuko
Created August 12, 2010 11:30
Show Gist options
  • Save miyamuko/520799 to your computer and use it in GitHub Desktop.
Save miyamuko/520799 to your computer and use it in GitHub Desktop.
xyzzy の loop マクロの while の評価順がおかしい
;; xyzzy 0.2.2.235
(require "cmu_loop")
(loop
for i from 0 to 2
while (progn
(format t "while ~A~%" i)
t)
do (format t "do ~A~%" i))
do 0
while 1
do 1
while 2
do 2
while 3
nil
;; clisp 2.48
[1]> (loop
for i from 0 to 2
while (progn
(format t "while ~A~%" i)
t)
do (format t "do ~A~%" i))
while 0
do 0
while 1
do 1
while 2
do 2
NIL
;; SBCL 1.0.37
* (loop
for i from 0 to 2
while (progn
(format t "while ~A~%" i)
t)
do (format t "do ~A~%" i))
while 0
do 0
while 1
do 1
while 2
do 2
NIL
*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment