[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: commonlisp types
: So I'm curious. Does any compiler actually get this right?
KCL. See script at the end of this message.
BTW, our mailer didn't like the address
Robert W. Kerns <RWK@FUJI.ILA.Dialnet.Symbolics.COM>
on the excuse that FUJI.ILA.Dialnet.Symbolics.COM is an unknown host.
Cesar
KCl (Kyoto Common Lisp) June 3, 1987
--- UofR version of September 9, 1988
Loading /u/quiroz/.kclrc
Loading /u/quiroz/work/kcl/defsys/defsys.o
Finished loading /u/quiroz/work/kcl/defsys/defsys.o
Finished loading /u/quiroz/.kclrc
> (defun bar (x) (symbolp x))
bar
> (defun foo (x)
(flet ((bar (y) (integerp y)))
(typep x '(satisfies bar))))
foo
> (foo 'x)
t
>(compile 'bar)
End of Pass 1.
End of Pass 2.
OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
bar
>(compile 'foo)
End of Pass 1.
End of Pass 2.
OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
foo
>(foo 'x)
t
>