Jarrett Billingsley wrote: > On Mon, May 18, 2009 at 2:57 PM, Andrei Alexandrescu > <seewebsiteforem...@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?
I have to second this one - parsing stringof "feels" wrong. It's like taking a detour over a language only tangentially related to D.