note
TGI
<p>Some checks could be done if you had a way to tell the compiler you weren't going to do something like this.
<c>
__PACKAGE__->no_monkey_business; # no new methods/method signatures can happen now.
# or perhaps
use static_methods qw( MyClass ); #compile this class with only explicitly declared methods allowed.
</c>
<p>Where the declaration says that only the methods that exist for the class at that time, or perhaps those that have been explicitly declared are available.
<p>Even better if you could turn it off from outside the class file, so you could do some monkey patching if needed:
<c>
# in main:
no static_methods MyClass; # uses MyClass with static_methods turned off.
</c>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-25825">
<P><BR>TGI says <B>moo</B></P>
</div></div>
755790
756092