Saturday, October 9, 2010

Oh 2 Big Bugs

Found 2 big (well, one bigger than the other...) bugs that will keep us from switching to the new compiler.

1. This one is a bit stupid.  RETURN-FROM doesn't work correctly with LABELS and FLET. For other reasons, the current compiler renames functions defined in LABELS and FLET. But I didn't let RETURN-FROM in on the change. Not hard to fix; just a bit of digging into this old code (holding nose... it's in the Java part...).

2. The other one is a bit harder. This involves nested FUNCALLs. Forms like:
  (funcall some (funcall another arg...) ..more args)
  (funcall (funcall a-fn ..args..) ..other-args...)
The symptoms point to the transformations of args to work in the correct function application, e.g. dealing with &optional or &key parameters. Getting this right will help the design/implementation of the new compiler.

More as I bore into the problems...

No comments:

Post a Comment