dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pnet-developers] int ILMethodIsStaticConstructor(ILMethod *method)


From: Tim Nichols
Subject: Re: [Pnet-developers] int ILMethodIsStaticConstructor(ILMethod *method)
Date: Tue, 31 Jan 2006 21:29:40 -0800
User-agent: Thunderbird 1.5 (Windows/20051201)

newbie mistake : note that I added these to struct _tagILMethod

ILUInt8 isStaticConstructor; ILUInt8 isConstructor;
Tim Nichols wrote:
Hi -

I'm a newbie to this list, so forgive me if I'm breaking any protocol here. :-)

I notice ILMethodIsStaticConstructor (and ILMethodIsConstructor) get called quite a bit. Is there a reason why the result of the test (which involes a strcmp) isn't cached?

I added the following to program.h for this purpose.
ILUInt8 isStaticConstructor; ILUInt8 isConstructor; once these are set, I can then simply check these values inside ILMethodIsStaticConstructor (and ILMethodIsConstructor) instead of doing the complicated check involving the strcmp.

This seems safe, or am I missing something?

- Tim
_______________________________________________
Pnet-developers mailing list
address@hidden
http://dotgnu.org/mailman/listinfo/pnet-developers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]