Tucker,

About this comment:

4. CommonGenerator: "prototype" is _not_ a property of Object instances, only 
of Function instances (and hence of our Classes, which are implemented as 
ECMAScript Functions.  Function instances also have length, apply, and call as 
properties.

I think the right thing is to separate the symbols: 'prototype', 'length', 
'apply', 'call', and pull them out of possibleInstance, but only when we are in 
a method in on of our classes.  How do I tell if we're in one of our classes?  
I don't see a pragma I can hang my hat on.  Is there some trick I'm missing, or 
should I create a pragma in ClassModel that indicates this?

- Don

On Mar 11, 2011, at 3:03 PM, P T Withington wrote:

> Another test case we need to verify:
> 
>  <class name="stateTest">
>    <attribute name="attr" value="42" />
>    <state applied="true">
>      <method name="stateMethod">
>        return attr;
>      </method>
>    </state>
>  </class>
> 
> <state>s are funny in that they 'donate' their methods to the parent node.  
> We may have some work to do there.  Perhaps we will have to turn off the 
> optimization for now and file an improvement to fix the way state methods 
> work.


--

Don Anderson
Java/C/C++, Berkeley DB, systems consultant

voice: 617-306-2057
email: [email protected]
www: http://www.ddanderson.com
blog: http://libdb.wordpress.com





Reply via email to