I guess I didn't make myself very clear in my last response -- when I say I'm writing a class generator, I mean that I'm designing a module with functionality similar to Class::MethodMaker. It is not a base class that I'm writing, but a module that generates class methods from "boilerplate" at run-time, thereby simplifying recurring issues that come up when writing OO Perl, like class-level and base-class-level data, attribute defaults, attribute accessors/mutators, etc. In practice, there will be no speed hit if the option to tie the class is not used, since no "tieing code" will be generated. I do want to leave the programmer the option to create such code; however, so I can simplify the process of writing such code as well.
Although you've now got me questioning whether there is any point in writing code to generate from "boilerplate" TIEHASH/FETCH/STORE routines when they will in probably just get overridden anyway. I definitely have to think in greater depth about what sort of generated code could even be useful in regards to the tie feature. Thanks for the insight.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.