Author Topic: ;| Inline piped comments|; and compiling to FAS and DES  (Read 957 times)

0 Members and 1 Guest are viewing this topic.

Peter2

  • Swamp Rat
  • Posts: 619
;| Inline piped comments|; and compiling to FAS and DES
« 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?
Peter

AutoCAD Map 3D 2018 German (so some technical terms will be badly retranslated to English)
BricsCAD V21

ribarm

  • Gator
  • Posts: 2527
  • Marko Ribar, architect
Re: ;| Inline piped comments|; and compiling to FAS and DES
« Reply #1 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
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1210
  • Marco
Re: ;| Inline piped comments|; and compiling to FAS and DES
« Reply #2 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-

Peter2

  • Swamp Rat
  • Posts: 619
Re: ;| Inline piped comments|; and compiling to FAS and DES
« Reply #3 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.
Peter

AutoCAD Map 3D 2018 German (so some technical terms will be badly retranslated to English)
BricsCAD V21