[Ecls-list] Error with &key and defconstant defaults?

Juan Jose Garcia Ripoll worm at arrakis.es
Fri May 23 06:40:06 UTC 2003


On Friday 23 May 2003 12:07, Dave Pearson wrote:
> Here's a short body of code that demonstrates the problem:
> | (defconstant +foo+ 23)
> |
> | (defconstant +bar+ 42)
> |
> | (defun test (&key (foo +foo+) (bar +bar+))
> |   (values foo bar))

When the bytecodes compiler faced the "&key (foo +foo+)" it produced a wrong 
sequence of instructions (basically, an integer constant which is interpreted 
by the virtual machine as a relative address).

I have fixed this in the NEW_COMPILER CVS branch.

Best regards,

Juanjo





More information about the ecl-devel mailing list