Get the name of a function and the parameters?

Jarrett Billingsley jarrett.billingsley at gmail.com
Mon Apr 27 12:43:18 PDT 2009


On Mon, Apr 27, 2009 at 6:56 AM, Jacob Carlborg <doob at me.com> wrote:

> I found that this:
>
> void foo (int x, int y)
> {
> }
>
> void main ()
> {
>    pragma(msg, typeof(&foo).stringof);
> }
>
> gave this result:
>
> void function(int x, int y)
>
> So now I just have to get the names out of there.

Interesting!  I wonder if that changed recently.


More information about the Digitalmars-d-learn mailing list