1 ;;;; This software is part of the SBCL system. See the README file for
4 ;;;; This software is derived from the CMU CL system, which was
5 ;;;; written at Carnegie Mellon University and released into the
6 ;;;; public domain. The software is in the public domain and is
7 ;;;; provided with absolutely no warranty. See the COPYING and CREDITS
8 ;;;; files for more information.
10 (in-package "SB!IMPL")
12 (defmacro-mundanely destructuring-bind (lambda-list arg-list &rest body)
14 "Bind the variables in LAMBDA-LIST to the contents of ARG-LIST."
15 (let ((arg-list-name (gensym "ARG-LIST-")))
16 (multiple-value-bind (body local-decls)
17 (parse-defmacro lambda-list arg-list-name body nil 'destructuring-bind
19 :doc-string-allowed nil)
20 `(let ((,arg-list-name ,arg-list))