Some checks could be done if you had a way to tell the compiler you weren't going to do something like this.
__PACKAGE__->no_monkey_business; # no new methods/method signatures c
+an happen now.
# or perhaps
use static_methods qw( MyClass ); #compile this class with only expli
+citly declared methods allowed.
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.
Even better if you could turn it off from outside the class file, so you could do some monkey patching if needed:
# in main:
no static_methods MyClass; # uses MyClass with static_methods turned
+off.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|