Results 1 to 6 of 6

Thread: inline comments

  1. #1
    TCEBob Guest

    inline comments

    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

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

  3. #3
    TCEBob Guest
    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@jiveforu m1.autodesk.com...
    It's actually for comment blocking, such as headers in the .lsp file...used
    when you have more than one line of comments, usually...

  4. #4
    R. Robert Bell Guest
    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

  5. #5
    TCEBob Guest
    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

  6. #6
    Dommy2Hotty Guest
    Okay...gotcha...

Similar Threads

  1. Replies: 6
    Last Post: 12-12-2005, 01:10 AM
  2. Labeling in SW or showing notes or comments
    By Someguy in forum SolidWorks
    Replies: 1
    Last Post: 07-28-2005, 05:10 PM
  3. UpFront.eZine Publishes My Comments...
    By jon_banquer in forum SolidWorks
    Replies: 3
    Last Post: 04-25-2005, 01:10 AM
  4. Comments on Monitors for CAD
    By George in forum Cadence
    Replies: 3
    Last Post: 03-01-2005, 07:51 AM
  5. Can you put comments into a script file?
    By Doug in forum Customization
    Replies: 12
    Last Post: 01-07-2005, 11:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other forums: Access Forum - Microsoft Office Forum - Exchange Server Forum