The Final(ize) Challenge

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon May 18 12:14:52 PDT 2009


Jarrett Billingsley wrote:
> On Mon, May 18, 2009 at 2:57 PM, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> wrote:
>> Andrei Alexandrescu wrote:
>>> I don't think "out" is doable.
>> I take that back. It is doable. The code below prints "void function(out int
>> _param_0)":
>>
>> struct S
>> {
>>    void blah(out int) {}
>> }
>>
>> void main()
>> {
>>    writeln(typeof(&S.blah).stringof);
>> }
> 
> Wonderful, I can extract information about parameters through a
> completely undocumented mechanism.  What guarantee do I have that this
> will work with another frontend or version of DMD?

Submit a bug report asking for documentation. You'd be able to whine to 
an eskimo that there's too much snow on your sidewalk.

Andrei



More information about the Digitalmars-d mailing list