ParameterNameTuple(T)? Or maybe just a ParameterTuple(T)

%u wfunction at hotmail.com
Thu Jan 6 23:40:53 PST 2011


Hi,

I've noticed that one very handy thing that D lacks is a
ParameterNameTuple(T), or rather, a plain ParameterTuple(T) that lets us
inspect *all* aspects of a parameter (e.g. ref/lazy/out, name, etc.).
Sometimes I have a function whose names I need to reference as an entire
package, and having a tuple of them would be nice. So I just wanted to suggest
that, if possible, please consider adding this in some future version.

Thank you! :) D is awesome.


More information about the Digitalmars-d mailing list