The Final(ize) Challenge
Jarrett Billingsley
jarrett.billingsley at gmail.com
Mon May 18 12:05:03 PDT 2009
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?
More information about the Digitalmars-d
mailing list