inline comments
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
inline comments

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
TCEBob
Guest





Posted: Mon Dec 27, 2004 2:18 am    Post subject: inline comments Reply with quote

Just found out by accident that comments may be placed in lines with the ;|. .
..|; style. Such as:

;|A|;(cond
( (= pt1tyep 'STR) ;User entered something at keyboard
;|B|; (cond
;|B.1|; (setq go 0) ;get out of program
)
;|B.2|; ( (and (= (atof pt1) 0.0) ;evaluates to 0.0 -but atof gives 0.0 for
alpha strings, too.
(0string pt1) ;is in fact user-entered 0.0

I think the vlisp editor will mess them up but the code runs fine.

I'm not sold that it's a good idea -- but it does open possibilities. Anybody
here make use of it?

rs

Back to top
Dommy2Hotty
Guest





Posted: Mon Dec 27, 2004 2:41 am    Post subject: Re: inline comments Reply with quote

It's actually for comment blocking, such as headers in the .lsp file...used when you have more than one line of comments, usually...
Back to top
TCEBob
Guest





Posted: Mon Dec 27, 2004 8:43 am    Post subject: Re: inline comments Reply with quote

Yes, that's why I was interested that it works within a line, too.

rs

"Dommy2Hotty" <nospam@address.withheld> wrote in message
news:16657430.1104097330131.JavaMail.jive@jiveforum1.autodesk.com...
Quote:
It's actually for comment blocking, such as headers in the .lsp file...used
when you have more than one line of comments, usually...


Back to top
R. Robert Bell
Guest





Posted: Mon Dec 27, 2004 7:56 pm    Post subject: Re: inline comments Reply with quote

I used them all the time, and they are supported by the VLIDE, and they are
documented in the AutoLISP Developer's Guide.

--
R. Robert Bell


"TCEBob" <tcebobatgwidotnet> wrote in message news:41cf2aa9$1_3@newsprd01...
Just found out by accident that comments may be placed in lines with the ;|.
..
..|; style. Such as:

;|A|;(cond
( (= pt1tyep 'STR) ;User entered something at keyboard
;|B|; (cond
;|B.1|; (setq go 0) ;get out of program
)
;|B.2|; ( (and (= (atof pt1) 0.0) ;evaluates to 0.0 -but atof gives 0.0
for
alpha strings, too.
(0string pt1) ;is in fact user-entered 0.0

I think the vlisp editor will mess them up but the code runs fine.

I'm not sold that it's a good idea -- but it does open possibilities.
Anybody
here make use of it?

rs
Back to top
TCEBob
Guest





Posted: Mon Dec 27, 2004 10:04 pm    Post subject: Re: inline comments Reply with quote

Well, durn, thanks for your input guys. I really thought that they were intended
only for multiline comments and would screw up the end of a line. Just tried it
in vlide and it survived formatting just fine.

rs

Living and Learning
Back to top
Dommy2Hotty
Guest





Posted: Mon Dec 27, 2004 10:32 pm    Post subject: Re: inline comments Reply with quote

Okay...gotcha...
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB