www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3309] New: `Traits` : function parameters name

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

           Summary: `Traits` : function parameters name
           Product: D
           Version: future
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: julien onandon.be


--- Comment #0 from Julien Leclercq <julien onandon.be> 2009-09-10 06:58:50 PDT
---
Created an attachment (id=448)
traits.c patch

Hello,

    I'm trying to add a small __traits keyword to traits.c to get a function
parameter names, as :

        void foo(in string name) would return [ "name" ];
        void bar(in string firstname, in string lastname) would return [
"firstname", "lastname" ];

    Thanks to Andrei & Walter for the first tips.

Please review the patch,
Thank you,
Julian.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 10 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3309



--- Comment #1 from Julien Leclercq <julien onandon.be> 2009-09-10 06:59:30 PDT
---
Created an attachment (id=449)
Test case

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 10 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3309



--- Comment #2 from Julien Leclercq <julien onandon.be> 2009-09-10 06:59:58 PDT
---
Created an attachment (id=450)
id.h patch

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 10 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3309



--- Comment #3 from Julien Leclercq <julien onandon.be> 2009-09-10 07:00:29 PDT
---
Created an attachment (id=451)
id.c patch

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 10 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3309



--- Comment #4 from Julien Leclercq <julien onandon.be> 2010-08-15 11:10:52 PDT
---
Created an attachment (id=717)
dmd/idgen.c

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



--- Comment #5 from Julien Leclercq <julien onandon.be> 2010-08-15 11:11:40 PDT
---
Created an attachment (id=718)
dmd/traits.c

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 15 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3309



--- Comment #6 from Julien Leclercq <julien onandon.be> 2010-08-15 11:11:59 PDT
---
Created an attachment (id=719)
phobos/traits.d

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