The less-familiar parts of Lisp for beginners — fmakunbound

Next in the list of Lisp features I’m reviewing here is fmakunbound.  There isn’t very much to say about this if you understand the behaviour of packages and intern, covered in this earlier article.  The fmakunbound function causes the function field associated with the symbol to be discarded.  If that symbol formerly had a function field associated with it, allowing the function to be invoked by interpreting the symbol in a function context, then that method of invocation is no longer available.

As with fboundp, fmakunbound does not see lexically scoped symbols, it only acts on the set of interned symbols, so it does not affect behaviour driven by flet, labels, or macrolet.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

反垃圾邮件 / Anti-spam question * Time limit is exhausted. Please reload CAPTCHA.