There's a separate idea dealing with object identity. In the database I've stored a fact( name=diotalevi, homepage=http://grenekatz.org ), in your OO world you may have multiple in-memory objects all dealing in the same fact. When you update an object representing a record would that update all the other objects tied to that fact? Or what of transactions? Or what of comparing objects for identity? If I have two objects pointing to the same record would I compare them for perl-object equality or record-equality? I would tend to thing that things such as eval { $oa->{'homepage'} = '...'; ... die }; ... = $ob->{'homepage'} would properly note that updates to $oa only propogate to $ob if $oa's update transaction completed successfully. Or maybe $oa and $ob should be considered part of the same connection so uncommitted updates would be visible to both but not to a hypothetical $oc. This is something additional for you to think about anyway.
-
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.
|