0 Members and 1 Guest are viewing this topic.
@ Steve:Why do you remove the dictionary instead of just the xrecord?What is the meaning of (1 . "DWGPROPS COOKIE")?It seems that a "DWGPROPS" dictionary was used in older versions of AC. Is it wise to use that name for a custom application?
Thanks for the suggestions, Lee! I've learned some new things, just by going through them. I understand that lambda creates an anonymous function, but what is the purpose of using it here? Thanks,Steve
Thanks John! Yeah the extra parenthesis threw me for a minute, so I did a test at the command line of Code - Auto/Visual Lisp: [Select](lambda nil (/ 6 2))and sure enough, it didn't return "3", so I triedCode - Auto/Visual Lisp: [Select]((lambda nil (/ 6 2)))and that returned 3. Steve
Thanks for the suggestions, Lee! I've learned some new things, just by going through them. I understand that lambda creates an anonymous function, but what is the purpose of using it here?
Quote from: steve.carson on April 14, 2016, 04:19:39 PMThanks John! Yeah the extra parenthesis threw me for a minute, so I did a test at the command line of Code - Auto/Visual Lisp: [Select](lambda nil (/ 6 2))and sure enough, it didn't return "3", so I triedCode - Auto/Visual Lisp: [Select]((lambda nil (/ 6 2)))and that returned 3. SteveExtra credit: what is the difference between "(lambda nil" and "(lambda (/)"?
Quote from: John Kaul (Se7en) on April 14, 2016, 05:10:30 PMExtra credit: what is the difference between "(lambda nil" and "(lambda (/)"?Shooting from the hip here but does (lambda nil) mean it accepts no arguments and saves no variables but (lambda (/)) will?
Extra credit: what is the difference between "(lambda nil" and "(lambda (/)"?
(lambda nil ...is the same as(lambda ( / ) ...