|
From: Peter M. <pm...@fr...> - 2017-05-16 09:22:44
|
On Tue, May 16 2017, Pascal Bourguignon wrote:
> Notice that most of the problem you have is actually converting between BIT and BOOLEAN…
> (Also, the similarity between the last two forms is a hint on how an
> implementation could very well implement boole).
Thanks for all your explanations, I've learned some more things about CL.
But your suggestions are overkill in my situation, it's just about
avoiding code duplication like this:
--8<---------------cut here---------------start------------->8---
(if inv
(if (or (>= a b) (< a c))
1 0)
(if (and (>= a b) (< a c))
1 0))
--8<---------------cut here---------------end--------------->8---
But thanks to James Anderson, I've found a solution:
(defparameter a a) (defparameter b b) (defparameter c c)
Kind regards,
--
Peter
|