The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 AutoCAD
 Lisp & Other Handy Files
 Illegal lambda list element
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

deadrocker
Starting Member

1 Posts

Posted - December 06 2005 :  11:27:28 PM  Show Profile  Visit deadrocker's Homepage  Reply with Quote
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

n/a
deleted

112 Posts

Posted - December 07 2005 :  09:24:51 AM  Show Profile  Reply with Quote
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

Steve Bubendorf
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.3 seconds. Snitz Forums 2000