Thread overview
[Issue 3309] New: `Traits` : function parameters name
Sep 10, 2009
Julien Leclercq
Sep 10, 2009
Julien Leclercq
Sep 10, 2009
Julien Leclercq
Sep 10, 2009
Julien Leclercq
Aug 15, 2010
Julien Leclercq
Aug 15, 2010
Julien Leclercq
Aug 15, 2010
Julien Leclercq
Aug 15, 2012
Kenji Hara
September 10, 2009
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: -------
September 10, 2009
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: -------
September 10, 2009
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: -------
September 10, 2009
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: -------
August 15, 2010
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: -------
August 15, 2010
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: -------
August 15, 2010
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: -------
July 08, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3309



--- Comment #7 from github-bugzilla@puremagic.com 2012-07-08 13:38:34 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/d-programming-language.org

https://github.com/D-Programming-Language/d-programming-language.org/commit/ab2c26fb3c7ea88183dffe20187c3a87c9c959eb Fix issue 3309

Documentation for the new parameterNames trait

https://github.com/D-Programming-Language/d-programming-language.org/commit/12c4c0089d41264da2fffff9c92f48d24615244c Merge pull request #122 from jmaschme/parameterNames3309

Fix issue 3309 parameter names trait

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


Kenji Hara <k.hara.pg@gmail.com> changed:

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


--- Comment #8 from Kenji Hara <k.hara.pg@gmail.com> 2012-08-15 09:24:18 PDT ---
In 2.060, __parameters was added to IsExpression. https://github.com/D-Programming-Language/dmd/commit/08811d7abbb6cd6eeabef041122e1673b2044251

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



--- Comment #9 from github-bugzilla@puremagic.com 2012-09-02 06:18:32 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/d-programming-language.org

https://github.com/D-Programming-Language/d-programming-language.org/commit/57236fafa07e2591571775b5e05fc515a187ffd6 Revert "Fix issue 3309"

This reverts commit ab2c26fb3c7ea88183dffe20187c3a87c9c959eb.

This is incorrect documentation.

https://github.com/D-Programming-Language/d-programming-language.org/commit/ec7932dc1dd701f35fe6a834e674228eee829092 Merge pull request #150 from 9rnsr/fix_traits

Revert "Fix issue 3309"

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