[Issue 8106] func.stringof with default args

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 26 01:03:55 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8106



--- Comment #17 from Manu <turkeyman at gmail.com> 2012-06-26 01:06:12 PDT ---
(In reply to comment #15)
> 2. adding a "parameters" to traits, so that:
> 
>     __traits(parameters, foo)
> 
> returns a tuple that includes types, identifiers, and default values (like the
> 2.060 beta does now)?

Will that also include the storage class: const/ref/in/out/scope/...?

How would the code look to mirror an argument list to a new function? And how
would the code look to pick and choose individual pieces from the parameter
definition (ie, to capture just the name)?

I suppose std.traits would gain a bunch of helpers?

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