The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 AutoCAD
 Lisp & Other Handy Files
 Illegal lambda list element

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Attach a File

Check here to subscribe to this topic.
   

T O P I C    R E V I E W
deadrocker Posted - December 06 2005 : 11:27:28 PM
Hi there

I am executing a lisp file which contains a function

;;; Actions and Tests

(defun dopopactions (regs expr hold star)
(apply
(lambda ,(cons 'star (cons 'hold(car regs)))
,@actions
(list
(list (quote ,(car regs))
(list ,@(car regs))) hold))
(cons star (cons hold (cadr regs)))
)
)


Now I am getting an error as
Illegal lambda list element (CONS 'STAR(CONS 'HOLD(CAR REGS)))
***-Condition of type UNDEFINED-FUNCTION


Hope to get an answer as soon as possible.

Regards,
Vikram Shetty
1   L A T E S T    R E P L I E S    (Newest First)
n/a Posted - December 07 2005 : 09:24:51 AM
deadrocker,
I am far from an expert, but I have never seen commas or the @ sign used in lisp as your posted code shows. I searched the developer's guide just to be sure that it was simply something that I was unaware of. I'm pretty sure those items have to come out.

I've attached a copy of what I think the code should be. I don't know what the code accomplishes, and I don't have the proper arguments to pass to the code, so I can't test it.

Make sure you have good backups before you try the attached code, just in case it should do something "funky".



Download Attachment: dopopactions.txt
712 Bytes

The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.15 seconds. Snitz Forums 2000