www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4178] New: destructor missing in JSON output

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

           Summary: destructor missing in JSON output
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: echochamber gmail.com


--- Comment #0 from MIURA Masahiro <echochamber gmail.com> 2010-05-12 08:08:05
PDT ---
Destructors are not in DMD's JSON output.

Example:

% cat -n foo.d
     1    module foo;
     2    
     3    class Foo {
     4        this() {}
     5        ~this() {}
     6    }
% dmd -X -c foo.d
% cat foo.json 
[
{
"name" : "foo",
"kind" : "module",
"file" : "foo.d",
"members" : [
{
"name" : "Foo",
"kind" : "class",
"line" : 3,
"base" : "Object",
"members" : [
{
"name" : "this",
"kind" : "constructor",
"type" : "Foo()",
"line" : 4}
]
}
]
}
]
% 

Destructor in line 5 is not output.

Tested with DMD 2.045 for Linux.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 12 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4178


Matt Peterson <revcompgeek gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |revcompgeek gmail.com


--- Comment #1 from Matt Peterson <revcompgeek gmail.com> 2012-03-14 15:43:24
PDT ---
https://github.com/D-Programming-Language/dmd/pull/813

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 14 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4178



--- Comment #2 from Walter Bright <bugzilla digitalmars.com> 2013-01-20
02:46:33 PST ---
https://github.com/D-Programming-Language/dmd/pull/1518

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 20 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4178



--- Comment #3 from github-bugzilla puremagic.com 2013-01-20 04:47:49 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/9c2f0bb5475850df14a23a58134e570d21b75395
fix Issue 4178 - destructor missing in JSON output

https://github.com/D-Programming-Language/dmd/commit/dc43e3bb5fc8d830bfdbf0531b10bb7b19d78001
Merge pull request #1518 from WalterBright/b20

fix Issue 4178 - destructor missing in JSON output

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 20 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4178


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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