Karsten Poeck <karsten.poeck@...> writes:
> Since the error is talking about some internals, I suspect this is a
> compiler error.
Quite possibly, but at the first approximation, this code is invoking
undefined behaviour and breaking promises, as the VALUES declaration
is bogus: in SBCL (and AFAIK CMUCL too) VALUES declaration declares
types of return values.
CACHED-VALUE is nowhere to be seen and neither is
RETRIEVED-FROM-CACHE, and if they were, the declaration would still be
wrong as the the "return type" of the macro function is definitely
Deleting the declaration makes it compile just fine,
Digging deeper, the actual SBCL bug appears, though:
(DECLARE (VALUES LIST))))
I think I have a fix, though.
-- Nikodemus Schemer: "Buddha is small, clean, and serious."
Lispnik: "Buddha is big, has hairy armpits, and laughs."