comments in lisp

comments in lisp

GeryKnee
Advocate Advocate
776 Views
2 Replies
Message 1 of 3

comments in lisp

GeryKnee
Advocate
Advocate

That's a lisp function(defun fnInsertOnInsP (BlockName)
(if
(setq pt (getpoint "\nSpecify insertion point: "))
(command "_.-insert" (strcat "*" BlockName) "_NONE" pt "" "")
)
)

If i want to temporary ecclude it from .lsp fime i have to concvert it to comment 


;(defun fnInsertOnInsP (BlockName)
;(if
;(setq pt (getpoint "\nSpecify insertion point: "))
;(command "_.-insert" (strcat "*" BlockName) "_NONE" pt "" "")
😉
😉

if pascal it's enough to convert it using

{

......

.....

}

or

(*

......

.....

*)

 

Is there a way like this in lisp???

 

 

 

0 Likes
Accepted solutions (1)
777 Views
2 Replies
Replies (2)
Message 2 of 3

CodeDing
Advisor
Advisor
Accepted solution

@GeryKnee ,

 

What you're looking for is a multi-line comment.

They can be made like so:

(alert "Popup #1")
;; Below, is a multi-line comment
;|
(alert "Popup #2")
(alert "Popup #3")
(alert "Popup #4")
|;
(alert "Popup #5")

Only Popups #1 & #5 will appear when the code is ran.

 

Best,

~DD

Message 3 of 3

GeryKnee
Advocate
Advocate

OK,

Thank you very much

Regards,

Gery.

0 Likes