Thread overview
[Issue 3404] New: JSON output should retain original alias names
Oct 15, 2009
Ary Borenszweig
Mar 14, 2012
Matt Peterson
Jan 20, 2013
Walter Bright
Jan 20, 2013
Walter Bright
October 15, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3404

           Summary: JSON output should retain original alias names
           Product: D
           Version: 1.050
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: ary@esperanto.org.ar


--- Comment #0 from Ary Borenszweig <ary@esperanto.org.ar> 2009-10-15 02:54:38 PDT ---
For this input:

---
module main;
alias int myInt;
myInt x;
--- 

The JSON output is:

---
{
"name" : "main",
"kind" : "module",
"file" : "main.d",
"members" : [
{
"name" : "myInt",
"kind" : "alias",
"type" : "int",
"line" : 5}
,{
"name" : "x",
"kind" : "variable",
"type" : "int",
"line" : 7}
]
}
--- 

But the last one should be:

---
{
"name" : "x",
"kind" : "variable",
"type" : "myInt",
"line" : 7}
---

That is, aliases should not be forgotten. This is especially important for binding libraries where aliases are heavily used.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3404


Matt Peterson <revcompgeek@gmail.com> changed:

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


--- Comment #1 from Matt Peterson <revcompgeek@gmail.com> 2012-03-14 13:00:39 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: -------
January 20, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=3404



--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2013-01-19 20:17:07 PST ---
https://github.com/D-Programming-Language/dmd/pull/1515

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



--- Comment #3 from github-bugzilla@puremagic.com 2013-01-19 23:08:06 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/9f349dff74fcfc5154e2f77b5254bf87dbdb3240 fix Issue 3404 - JSON output should retain original alias names

https://github.com/D-Programming-Language/dmd/commit/bac55b34ee296d73e977812582945234d651d6d8 Merge pull request #1515 from WalterBright/b18

fix Issue 3404 - JSON output should retain original alias names

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


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: -------