dotgnu-general
[Top][All Lists]
Advanced

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

Re: [DotGNU]Re: Regarding ildiff ..


From: Rhys Weatherley
Subject: Re: [DotGNU]Re: Regarding ildiff ..
Date: Sat, 29 Sep 2001 07:02:29 +1000

Gopal V wrote:

>    Glad to know the code is in CVS. And thanks for the man page.I would like
>    to request a compare function into the IL tokens (ie ILMethod ILField etc).
>    Since what I want is *NOT* an is Identical function , it should return 0 if
>    identical and otherwise it should return a result code.

Ummm ... there isn't any compare function in the image
library on purpose.  Most of the programs that use that
library don't need one.  The purpose of ildiff is to perform
comparisons.  The implementation belongs there.

There are sufficient API's in "il_program.h" to acquire all
of the the information about tokens, which can then be
used to compare tokens in various interesting ways.

My philosphy with the image library has always been to
provide the basic infrastructure which is common to all
programs, and little else.  Program-specific infrastructure
belongs in those programs, or in separate libraries.
e.g. "dumpasm" exists as a separate library because it
is useful to multiple programs, but it isn't part of "image"
because there are some programs that don't need it.

If you want to create an "IL compare" library that
contains useful comparison functions, then that is fine.
But it should not be part of "image".

Cheers,

Rhys.




reply via email to

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