Getting the parameters of a struct/class constructor

Rob T alanb at ucora.com
Thu Jan 24 16:53:43 PST 2013


On Thursday, 24 January 2013 at 22:49:33 UTC, Andrej Mitrovic 
wrote:
> On 1/24/13, Philippe Sigaud <philippe.sigaud at gmail.com> wrote:
>> IIRC, you can use __traits(getOverloads, mytype.__ctor) to get 
>> all
>> constructor overloads.
>> See:
>> http://dlang.org/traits.html#getOverloads
>>
>> I used this in conjunction with __traits(getMember, ...) to 
>> get the
>> entire list of member, overloads included.
>>
>
> I don't understand why, but it seems DForum doesn't show up any 
> of my
> posts. I've posted this as my second reply (hope this makes it):
>

The thread got split up into two separate threads. Your missing 
post shows up in the split. I really hate it when it does this.

--rt


More information about the Digitalmars-d-learn mailing list