www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3404] New: JSON output should retain original alias names

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: -------
Oct 15 2009