Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
August 31, 2012 Trait to get function parameter names | ||||
---|---|---|---|---|
| ||||
Subject. Is that possible? I see only parameter type tuple stuff out there. I'm looking into iterating over own parameter name list inside of function. |
August 31, 2012 Re: Trait to get function parameter names | ||||
---|---|---|---|---|
| ||||
Posted in reply to mist | On 2012-08-31 16:24, mist wrote: > Subject. > Is that possible? I see only parameter type tuple stuff out there. I'm > looking into iterating over own parameter name list inside of function. Here: http://dlang.org/traits.html#parameterNames -- /Jacob Carlborg |
August 31, 2012 Re: Trait to get function parameter names | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Friday, 31 August 2012 at 19:15:14 UTC, Jacob Carlborg wrote:
> On 2012-08-31 16:24, mist wrote:
>> Subject.
>> Is that possible? I see only parameter type tuple stuff out there. I'm
>> looking into iterating over own parameter name list inside of function.
>
> Here: http://dlang.org/traits.html#parameterNames
Thank you.
|
September 04, 2012 Re: Trait to get function parameter names | ||||
---|---|---|---|---|
| ||||
Posted in reply to mist | On 08/31/2012 12:48 PM, mist wrote: > On Friday, 31 August 2012 at 19:15:14 UTC, Jacob Carlborg wrote: >> On 2012-08-31 16:24, mist wrote: >>> Subject. >>> Is that possible? I see only parameter type tuple stuff out there. I'm >>> looking into iterating over own parameter name list inside of function. >> >> Here: http://dlang.org/traits.html#parameterNames > > Thank you. Have fun discovering it isn't implemented. Then use std.traits.ParameterIdentifierTuple |
September 04, 2012 Re: Trait to get function parameter names | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ellery Newcomer | On 2012-09-04 20:28, Ellery Newcomer wrote: > Have fun discovering it isn't implemented. Then use It isn't? Then why is it in the docs. > std.traits.ParameterIdentifierTuple And why is this not in the docs. -- /Jacob Carlborg |
September 04, 2012 Re: Trait to get function parameter names | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On 09/04/2012 12:09 PM, Jacob Carlborg wrote: > On 2012-09-04 20:28, Ellery Newcomer wrote: > >> Have fun discovering it isn't implemented. Then use > > It isn't? Then why is it in the docs. no idea. > >> std.traits.ParameterIdentifierTuple > > And why is this not in the docs. > dlang.org docs seem to lag behind a bit. ParameterIdentifierTuple was added in 2.060 |
September 04, 2012 Re: Trait to get function parameter names | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ellery Newcomer | I think the __traits thing was a half-completed pull request. Or a complete one that got half-reverted. In any case it was a mistake to put it in the docs, since it isn't in the dmd source code. |
Copyright © 1999-2021 by the D Language Foundation