coly_lisp_object now dows not create new nil and t values anymore

Fixed an error where a nil value could not be used as the default
value as a keyword argument since coly_lisp_object would be invoked
before assigning nil as the default argument, producing a separate nil
value, which then fails the nil tests becase it lives in a different
location as Memory::nil.
This commit is contained in:
Felix Brendel
2019-05-17 02:11:20 +02:00
parent 03a2c81aa5
commit 912ec19373
6 changed files with 63 additions and 15 deletions
@@ -0,0 +1,7 @@
((lambda (:keys k1 :defaults-to (+ 1 2 3))
(assert (= k1 6))))
((lambda (:keys k1 :defaults-to ())
(when k1
(assert ()))
(assert (= k1 ()))))