Menu

#2 Multiline comments break code

open
nobody
None
1
2008-07-16
2002-05-22
No

Comments that end in \ will be interpreted as a multiline
comment in newer nasm's. This has been verified on
nasm 0.98.30 and did not occur with nasm 0.98. For
example, the following code will break with newer versions:

; comment here \
.somelabel

This may or may not be intentional, but it is unintuitive and
has broken existing code. I suggest removing multiline
comments.

Discussion

  • H. Peter Anvin

    H. Peter Anvin - 2002-05-22

    Logged In: YES
    user_id=58697

    Current behaviour is consistent with the C/C++ preprocessor.
    It's debatable whether or not it's the desired behaviour,
    but it's not a high-priority issue.

     
  • H. Peter Anvin

    H. Peter Anvin - 2002-05-22
    • priority: 5 --> 3
     
  • Nobody/Anonymous

    Logged In: NO

    Why not add a command line option, which controls whether or not line continuation is disabled or enabled?

     
  • Nobody/Anonymous

    Logged In: NO

    it certainly isnt in my opinion

    ;\\ ----------------------------------------------------------- \\
    ; no ansi art anymore plz \\
    ;\\------------------------------------------------------------ \\

     
  • Nobody/Anonymous

    Logged In: NO

    aa

     
  • ddd

    ddd - 2003-04-25

    Logged In: YES
    user_id=765300

    rr

     
  • nasm64developer

    nasm64developer - 2004-02-15

    Logged In: YES
    user_id=804543

    In my local forked version I have added a command line
    option which can be used to disable line continuation.

     
  • nasm64developer

    nasm64developer - 2004-02-15
    • priority: 3 --> 1
    • status: open --> open-works-for-me
     
  • Victor van den Elzen

    • status: open-works-for-me --> open
     
  • Victor van den Elzen

    Logged In: YES
    user_id=2127992
    Originator: NO

    It's tempting to close this as wontfix, but I'll move it to Feature Requests just in case someone wants to pick it up.

     
  • H. Peter Anvin

    H. Peter Anvin - 2008-07-16

    Logged In: YES
    user_id=58697
    Originator: NO

    For what it's worth, gcc issues a warning for //-style comments extended by ending the line in \

     

Log in to post a comment.