TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Peter2 on December 18, 2017, 08:56:03 AM

Title: ;| Inline piped comments|; and compiling to FAS and DES
Post by: Peter2 on December 18, 2017, 08:56:03 AM
AutoCAD 2018 help writes:
Quote
;| Inline |;
The single-line comment appears after formatting as any other expression; the multiple-line comment appears starting at a new line

So this should be a valid code:

Code - Auto/Visual Lisp: [Select]
  1.  (princ "\nLet's beginn.")
  2. ;| I start the comment,
  3. continue it in second line and
  4. finish it in third line with the ending pipe |;
  5. (princ "\nGreat job!")

But I heard that this kind of comment could create problems when compiled to FAS and to DES.

Who can confirm or not confirm these compilation issues?
Title: Re: ;| Inline piped comments|; and compiling to FAS and DES
Post by: ribarm on December 18, 2017, 09:31:35 AM
I haven't tested, but if you heard rumors, I would check with this :

Code - Auto/Visual Lisp: [Select]
  1. (princ "\nLet's beginn.")
  2. ;|
  3. I start the comment,
  4. continue it in second line and
  5. finish it in third line with the ending pipe
  6. |;
  7. (princ "\nGreat job!")
  8.  

So basically you have to replace all ;| with \n;|\n and all |; with \n|;\n
Title: Re: ;| Inline piped comments|; and compiling to FAS and DES
Post by: Marc'Antonio Alessi on December 18, 2017, 09:48:58 AM
[/size][/font][/color]
Code: [Select]
I found problems compiling des if there is no closing of the paragraph  "|;" at the end of the file, no problems with fas-
Title: Re: ;| Inline piped comments|; and compiling to FAS and DES
Post by: Peter2 on December 20, 2017, 02:46:23 AM
Thanks to both posters. In the meanwhile I found another information.
Code - Auto/Visual Lisp: [Select]
  1. There has been an issue with double quotes in inline comments in DESCoder.exe V2.2, but that has been fixed a long time ago.
But nevertheless I will convert this kind of comments if I found some; personally I never used it.