The documentation says "the parameter tuple of a function,
delegate, or function pointer. This includes the parameter types,
names, and default values."
.. but what type is it?
Error: argument (int i, char c, string s, bool b = false) to
typeof is not an expression
How am I supposed to get
On Thu, Sep 12, 2013 at 08:44:29PM +0200, simendsjo wrote:
> The documentation says "the parameter tuple of a function, delegate,
> or function pointer. This includes the parameter types, names, and
> default values."
>
> .. but what type is it?
>
> Error: argument (int i, char c, string s, bool
On Thursday, 12 September 2013 at 19:41:26 UTC, H. S. Teoh wrote:
On Thu, Sep 12, 2013 at 08:44:29PM +0200, simendsjo wrote:
(...)
.. but what type is it?
Error: argument (int i, char c, string s, bool b = false) to
typeof
is not an expression
How am I supposed to get the parameter names us
On 9/12/13, simendsjo wrote:
> Thanks. I just ended up using both is(__parameters and
> is(function to fetch the parameter names. Sometimes it seems
> things are added to D without a very thorough design phase, but
> then again, it starts with "__", so I guess I'm on my own :)
Have you tried usin
On Thu, Sep 12, 2013 at 10:40:06PM +0200, simendsjo wrote:
> On Thursday, 12 September 2013 at 19:41:26 UTC, H. S. Teoh wrote:
> >On Thu, Sep 12, 2013 at 08:44:29PM +0200, simendsjo wrote:
> (...)
> >>.. but what type is it?
> >>
> >>Error: argument (int i, char c, string s, bool b = false) to type
On Thursday, 12 September 2013 at 21:33:48 UTC, Andrej Mitrovic
wrote:
On 9/12/13, simendsjo wrote:
Thanks. I just ended up using both is(__parameters and
is(function to fetch the parameter names. Sometimes it seems
things are added to D without a very thorough design phase, but
then again, it
On 2013-09-13 08:33, simendsjo wrote:
Didn't know you could call __traits(identifier for the __parameter
values. __parameters is practically undocumented, and doesn't even have
an example.
It's documented here:
http://dlang.org/expression.html#IsExpression
Scroll down to the table, next to f
On Friday, 13 September 2013 at 07:42:48 UTC, Jacob Carlborg
wrote:
On 2013-09-13 08:33, simendsjo wrote:
Didn't know you could call __traits(identifier for the
__parameter
values. __parameters is practically undocumented, and doesn't
even have
an example.
It's documented here:
http://dlan