Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
(')are different from quote
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: (')are different from quote (Read 1151 times)
0 Members and 1 Guest are viewing this topic.
baitang36
Bull Frog
Posts: 213
(')are different from quote
«
on:
July 15, 2020, 02:25:14 AM »
Code - Auto/Visual Lisp:
[Select]
(
setq
BB
(
quote
(
nil
(
princ
8
)
)
)
returns a table (nil (princ 8 ))
Code - Auto/Visual Lisp:
[Select]
(
setq
BB
(
'
(
nil
(
princ
8
)
)
)
)
returns the result 8
After compilation, decompilation, (setq BB (quote(nil (princ 8 ))) becomes (setq BB '(nil (princ 8 ))), with one parenthesis missing
Logged
tombu
Bull Frog
Posts: 289
ByLayer=>Not0
Re: (')are different from quote
«
Reply #1 on:
July 15, 2020, 03:18:46 PM »
First nil isn't a function so any results would be wrong, second your
Code:
[Select]
(setq BB (quote(nil (princ 8 ))))
was missing a closing parenthesis.
Lee Mac has a very good comparison of these on his site:
http://www.lee-mac.com/quote.html
Logged
Tom Beauford P.S.M.
Leon County FL Public Works - Windows 7 64 bit AutoCAD Civil 3D
baitang36
Bull Frog
Posts: 213
Re: (')are different from quote
«
Reply #2 on:
July 15, 2020, 08:09:58 PM »
thank u
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
(')are different from quote