compile time output

Bill Baxter wbaxter at gmail.com
Tue Jan 20 15:52:47 PST 2009


On Wed, Jan 21, 2009 at 8:25 AM, Trass3r <mrmocool at gmx.de> wrote:
> Trass3r schrieb:
>>
>> This works:
>>
>> string foo(const string[] members)
>> {
>>    string result;
>>    foreach(m; members)
>>        result ~= m ~ " ";
>>    return result;
>> }
>>
>
> Furthermore there seems to be no way to use these member names in a
> __traits(getMember, class, m) call.
>
> This is driving me crazy.

Well, it does start with two underscores.  That may be trying to tell
you something. :-)

If you find a real bug definitely report it.   Also note that your bug
reports will be treated much more seriously if you can provide a
compelling use case which is difficult or impossible to work around
short of fixing the bug.  "If you fix this then I will be able create
cool thing X" seems to increase your chances of getting a fix
significantly.

--bb


More information about the Digitalmars-d-learn mailing list