intern and quoted symbols

Discussion of Common Lisp
Post Reply
Martin Kalbfuß
Posts: 12
Joined: Fri Jul 24, 2015 5:27 am

intern and quoted symbols

Post by Martin Kalbfuß » Tue Feb 23, 2016 5:10 am

Hi Community,

I try to understand packages and symbols. Is it true, that whenever I write down a symbol name, for example 'mysymbol, this symbol is going to be interned in the current package? And only if I use make-symbol I create an uninterned symbol?

Kind Regards,

Martin Kalbfuß

Goheeca
Posts: 271
Joined: Thu May 10, 2012 12:54 pm
Contact:

Re: intern and quoted symbols

Post by Goheeca » Tue Feb 23, 2016 5:30 am

That's pretty much that. However there is another possibility how to make uninterned symbol:

Code: Select all

#:uninterned-symbol
cl-2dsyntax is my attempt to create a Python-like reader. My mirror of CLHS (and the dark themed version). Temporary mirrors of aferomentioned: CLHS and a dark version.

Martin Kalbfuß
Posts: 12
Joined: Fri Jul 24, 2015 5:27 am

Re: intern and quoted symbols

Post by Martin Kalbfuß » Wed Feb 24, 2016 12:39 am

Thanks for the clarification.

pjstirling
Posts: 166
Joined: Sun Nov 28, 2010 4:21 pm

Re: intern and quoted symbols

Post by pjstirling » Thu Feb 25, 2016 10:50 am

Don't forget GENSYM which is probably the method you want to use (if you want to debug complex macros without tearing your hair out)

Post Reply