setq '

Started by cameyo, June 01, 2022, 09:32:46 AM

Previous topic - Next topic

cameyo

(setq 'a 3)
output: 3
a
output: nil


Which symbol is binded with 3?

How to retrieve it?



p.s. it's only a curiosity

HPW

#1
Hello,



setq is short for set quote. ;-)



> (setq a 3)
3
> a
3
> (set 'a 4)
4
> a
4
Hans-Peter

cameyo

#2
Yes.

I know it is wrong, but after:
(setq 'a 3)
> 3

the symbol a is created, but is nil.

Where is the value 3? ;-)

cameyo

#3
Solution of my problem:

http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=16&t=4580">//http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=16&t=4580