Exceptions

  • Thread starter Thread starter Drew
  • Start date Start date
You could do it yourself, but the problem I have with relying on XML
handwritten docs is that it requires too much manual effort; and any system
that requires manual effort will eventually have bad data input into it so
it will generate incorrect results - that's worse then not doing it at all.
 
I don't know anything about obfuscation except that I would think if it
obfuscated the actual meaning of the IL it would render it meaningless.
 
Dave said:
Agreed. It would be a way to do it given current technology.


Sure, but that's just the size of the assembly and the metadata within it -
the actual IL should not be affected by this.


I think this would be an extremely powerful and useful feature. You could
easily and instantly use it as a reference into what exceptions you expect
to be thrown from within a given try block. It's more then evaluating a
method, it would have to evaluate all the methods within a try block to be
useful.
Well, the first step is to write a static tool that can analyze IL and
determine what exceptions can be thrown. This is likely to be a very
complicated piece of code and would be written best as an external(IE
not-compiler) application, atleast until the compiler is able to accept post
IL generation plugins(like thats ever going to happen). Ideally an output
metadata file from such a tool would be used in the ide(similar to how Xml
Docs work), instead of requiring all compilers for all langauges to
implement such code.
 
Back
Top