Skip to content

Commit

Permalink
Allow make-event expansion in a local context to set acl2-defaults-ta…
Browse files Browse the repository at this point in the history
…ble.

Quoting :doc note-8-1:

  When performing [make-event] expansion under a surrounding [local]
  context, it is no longer illegal to set the [ACL2-defaults-table]
  (except of course when entering an [encapsulate] or [include-book]
  within that expansion).  For example, the following event formerly
  caused an error but is now legal.

    (local (make-event (er-progn (set-ignore-ok t)
                                 (defun foo (x) x)
                                 (value `(value-triple ,(length (w state)))))))
  • Loading branch information
MattKaufmann committed Jan 7, 2018
1 parent 96ca9cd commit c606593
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc.lisp
Expand Up @@ -78355,6 +78355,15 @@ Changes to Existing Features
error that prints the necessary [include-book] form, avoids stack
overflows that could occur when that book is not included.

When performing [make-event] expansion under a surrounding [local]
context, it is no longer illegal to set the [ACL2-defaults-table].
For example, the following event formerly caused an error but is
now legal.

(local (make-event (er-progn (set-ignore-ok t)
(defun foo (x) x)
(value `(value-triple ,(length (w state)))))))


New Features

Expand Down

0 comments on commit c606593

Please sign in to comment.