Q&A's, tips, howto's
-
cameyo
- Posts: 183
- Joined: Sun Mar 27, 2011 3:07 pm
- Location: Italy
-
Contact:
Post
by cameyo »
Code: Select all
(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
- Posts: 1390
- Joined: Thu Sep 26, 2002 9:15 am
- Location: Germany
-
Contact:
Post
by HPW »
Hello,
setq is short for set quote. ;-)
Code: Select all
> (setq a 3)
3
> a
3
> (set 'a 4)
4
> a
4
Hans-Peter
-
cameyo
- Posts: 183
- Joined: Sun Mar 27, 2011 3:07 pm
- Location: Italy
-
Contact:
Post
by cameyo »
Yes.
I know it is wrong, but after:
the symbol
a is created, but is
nil.
Where is the value 3? ;-)
-
cameyo
- Posts: 183
- Joined: Sun Mar 27, 2011 3:07 pm
- Location: Italy
-
Contact:
Post
by cameyo »