[Issue 5175] New: Add a way to get parameter names to std.traits
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 5 15:15:08 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5175
Summary: Add a way to get parameter names to std.traits
Product: D
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: jmdavisProg at gmx.com
--- Comment #0 from Jonathan M Davis <jmdavisProg at gmx.com> 2010-11-05 15:14:08 PDT ---
You can use std.traits.ParameterTypeTuple!() to get the types of the parameters
to a function, but there is not currently a way to get the names of the
parameters. Apparently, this would be useful for creating bindings with other
programming languages, so it should be added. It's discussed in this question
on stackoverflow: http://is.gd/gLeNf
So, we should have something like std.traits.ParameterNameTuple!() which gives
the names of a function's parameters.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list