www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4259] New: Header generation omits leading ' ' for properties

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4259

           Summary: Header generation omits leading ' ' for properties
           Product: D
           Version: 2.040
          Platform: x86
        OS/Version: Mac OS X
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: sean invisibleduck.org



---
The test file:

    class C {  property int get() { return 0; } }
    void main() {}

Generates the header:

    // D import file generated from 'hdrgen.d'
    class C
    {
        property 
    {
        int get()
    {
    return 0;
    }
    }
    }
    void main()
    {
    }

With the ' ' missing the header is invalid.  This is currently blocking the use
of these attributes in druntime.  I've attached a patch that fixes the issue,
but there's likely a better way to do it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 01 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4259


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED



22:36:26 PDT ---
http://www.dsource.org/projects/dmd/changeset/513

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