<?xml version="1.0" encoding="windows-1252"?>
<node id="897661" title="Re^2: fields alternative?" created="2011-04-06 00:56:28" updated="2011-04-06 00:56:28">
<type id="11">
note</type>
<author id="321512">
andreas1234567</author>
<data>
<field name="doctext">
(I have spoken with [bannaN] and his problem seems to be:)
&lt;ul&gt;
&lt;li&gt; [mod://fields] and [mod://JSON::XS] don't work together. [mod://fields] and [mod://JSON::PP] do work toghether, but [mod://JSON::PP] is too slow for his application. 
&lt;li&gt; [mod://fields] has some nice properties he would like to preserve, such as to catch common programming errors, e.g. accessing a non-declared object variable (e.g. &lt;c&gt;$p-&gt;{a}&lt;/c&gt;)
&lt;/ul&gt;
His strategy is:
&lt;ul&gt;
&lt;li&gt;Create objects in perl and dump object content with [mod://JSON::XS] 
&lt;li&gt;Replace [mod://fields] with another object system that detect access to a non-declared object variable (run-time or compile-time).
&lt;/ul&gt;
Is there an perl object system / framework that supports the above requirements?  [mod://Moose] and [mod://Mouse] have been considered and fail the last requirement.
&lt;p&gt;
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-321512"&gt;
&lt;small&gt;
--&lt;br&gt;
No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. &lt;a href="http://www.despair.com/viewall.html"&gt;&amp;#91;1&amp;#93;&lt;/a&gt;
&lt;/small&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
897334</field>
<field name="parent_node">
897561</field>
</data>
</node>
