protect compile-time side-effects of DEFUN with a package-lock
authorNikodemus Siivola <nikodemus@random-state.net>
Sun, 10 Apr 2011 12:22:35 +0000 (12:22 +0000)
committerNikodemus Siivola <nikodemus@random-state.net>
Sun, 10 Apr 2011 12:22:35 +0000 (12:22 +0000)
commit6a6735b1da0967fcbe59ec8634ef422121a87d75
tree28d335a40f146a138303dc157100ee5b1d8598e4
parent5fa4a761bfbc8fd2016fd63725c98e8e29e6d5b8
protect compile-time side-effects of DEFUN with a package-lock

  Ie. proclaiming as a function, possibly nuking existing inline
  definitions.

  Fixes lp#675584.

  Now compiling a file with

    (DEFUN LOCKED:FOO ...)

  signals a compile-time error.

    (WITHOUT-PACKAGE-LOCKS (DEFUN LOCKED:FOO ...))

  still works, as the DEFUN stops being a toplevel form, and hence no
  longer has compile-time side effects except for those inherent to
  compiling a NAMED-LAMBDA.
NEWS
src/code/defboot.lisp
src/compiler/ir1tran-lambda.lisp
tests/package-locks.impure.lisp
version.lisp-expr