Tomislav Posted April 20, 2019 Share Posted April 20, 2019 46 minutes ago, dlanorh said: (setq a (10 20 30)) => ;error: bad function: 10. This is looking for a function called 10 (defun 10 ( a b / )......) with two parameters to pass in (setq a '(10 20 30)) => (10 20 30) (type a) => LIST but (setq b 20) (setq a '(10 b 30)) => (10 B 30) (type a) => LIST ; ' means literal b is not evaluated (setq a (list 10 b 30)) => (10 20 30) (type a) => LIST ;Now b is evaluated i've wrote this down as a reminder, now it's pretty clearer, thanx again for the effort to explain it Quote Link to comment Share on other sites More sharing options...
dlanorh Posted April 20, 2019 Share Posted April 20, 2019 No problem Quote Link to comment Share on other sites More sharing options...
BIGAL Posted April 21, 2019 Share Posted April 21, 2019 Just a extra (kbn) this would be looked at as if you have a defun called kbn because you have enclosed it in brackets. This is the way you call a defun without passing any variables. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted April 27, 2019 Share Posted April 27, 2019 On 4/20/2019 at 6:23 PM, Tomislav said: i still don't quite get it why list,list,list instead of '(("Blocks" (kbn)) but must work on it My article describing The Apostrophe and the Quote Function should shed some light on this and help with your understanding. On 4/20/2019 at 6:03 PM, dlanorh said: Try (Steal "D:\\Geodezija\\Kartografska zbirka\\1000_BLOKOVI.dwg" (list (list "Blocks" (list kbn))) ) ;_ Steal Many thanks for assisting in my absence @dlanorh Quote Link to comment Share on other sites More sharing options...
Tomislav Posted April 27, 2019 Share Posted April 27, 2019 Thanks to you too Lee, ruler of the Lisp land Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.