Get the name of a function and the parameters?

Jacob Carlborg doob at me.com
Tue Apr 28 06:48:05 PDT 2009


Jarrett Billingsley wrote:
> 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.

I don't think so, I'm using gdc.


More information about the Digitalmars-d-learn mailing list