[Issue 6292] New: HTOD hides constants behind a comment

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 11 22:01:55 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6292

           Summary: HTOD hides constants behind a comment
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: htod
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-07-11 21:56:47 PDT ---
#define FOO 128
#define BAR 256 /* blablabla 
blablabla */

> htod -hc test.h

/* Converted to D from test.h by htod */
module test;
/* blablabla 
const FOO = 128;
blablabla */

Woops. FOO is hidden behind a /* */ comment, and BAR is gone! Ha-ha...

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list