KM 2.5.0 - important change

19 views
Skip to first unread message

Pete

unread,
May 14, 2010, 12:29:11 AM5/14/10
to km-qa

Hi KM'ers...

I wanted to let you know of an important change to KM in the recent
2.5.0.
With 2.5.0, you will need to include an extra line in all Lisp files
using the #$ macro:

(eval-when (:execute :load-toplevel :compile-toplevel)
(setq *readtable* *km-readtable*)) ; So that the dispatch macro #$
is recognized

This is to correct KM's previous illegal (wrt. the Lisp spec) use of
dispatch macros that is no longer permitted in Allegro 8.2. This is
only
needed in Lisp files using #$, not in the .km KB files nor Lisp files
that don't use #$.

Note that this is quite a significant discontinuity. Files without
this change will not load in KM 2.5.0 or later. Files with this
change will not load in KM 2.4.7 or earlier. Sorry for the
inconvenience,
but this appears to be a necessary change.

Best wishes!

Pete (peter....@boeing.com)

======================================================================

RELEASE NOTES

2.5.0 - **IMPORTANT CHANGE**
*ALL* Lisp files using KM's #$ dispatch macro needs to include
the
following two lines before the first use of #$ in that file (e.g.,
at the start of the file):

(eval-when (:execute :load-toplevel :compile-toplevel)
(setq *readtable* *km-readtable*)) ; So #$ is recognized

Without this declaration, the #$ macro will *NOT* be recognized.
This is to correct KM's previous illegal (wrt. the Lisp spec) use of
dispatch macros that is no longer permitted in Allegro 8.2. This is
only needed in Lisp files using #$, not in the .km KB files nor Lisp
files that don't use #$.

If you are using Lisp packages, and you used the #$ macro in a
package other than the KM package, then you will need to prefix
*km-readtable* with km:: in the files with those usages, e.g.,:

(in-package <some non-KM-package>)
(eval-when (:execute :load-toplevel :compile-toplevel)
(setq *readtable* km::*km-readtable*)) ; So #$ is recognized

Note that this is quite a significant discontinuity. Files without
this change will not load in KM 2.5.0 or later. Files with this
change will not load in KM 2.4.7 or earlier.

--
You received this message because you are subscribed to the Google Groups "km-qa" group.
To post to this group, send email to km...@googlegroups.com.
To unsubscribe from this group, send email to km-qa+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/km-qa?hl=en.

Reply all
Reply to author
Forward
0 new messages