Yeah that is what I am going to do for now, and then when we get that
working, let's generate the singleton classes.
We can debug a bunch of things at the same time.

Here's a bug maybe you could think about what could be causing: in
test/swf9/class-method-override.lzx, I defined an onclick handler in the
class, but the click handling does not seem to get
installed operationally on the instances in swf9.




On Fri, Mar 28, 2008 at 4:39 PM, P T Withington <[EMAIL PROTECTED]> wrote:

> Which do you want to do, compile instances as singleton classes, or not
> emit the override?  The latter is easiest, just change this line where
> override is defaulted:
>
>        boolean override = ("class".equals(className) &&
> superclassModel.getAttribute(name) != null) ||
>
> to make sure you only default it in classes.
>
>
> On 2008-03-28, at 14:07 EDT, Henry Minsky wrote:
>
> > You're talking about what the tag compiler emits, right?
> >
> > >
> > >
> > yes
> >
> >
> > > Although in this case we're screwed because
> > > it calls super.setY, so we really need to make this a singleton
> > > class...
> > >
> > >
> > > What's the rule?  Cannot call super methods when declaring an event
> > > method, or what?
> > >
> > >
> > Well, at the moment it would have to be that you cannot define a method
> > on
> > an instance , which
> > calls super.something, because it won't be compiled as a real class
> > method.
> > it will just be a function
> > closure which is sitting around as a property on the object.
> >
> > People expect this to work, which is why we're going to have to bite the
> > bullet and make tag compiler
> > emit singleton class declarations for every instance that declares a
> > method
> > which calls super().  And if we're
> > not emitting a singleton class declaration, then we have to make sure
> > NOT to
> > put the "override" keyword
> > before the "function ..." expression,  because it is only allowed when
> > you're really defining a method of a class.
> >
> >
> > >
> > > --
> > >
> > > Don Anderson
> > > Java/C/C++, Berkeley DB, systems consultant
> > >
> > > voice: 617-547-7881
> > > email: [EMAIL PROTECTED]
> > > www: http://www.ddanderson.com
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > --
> > Henry Minsky
> > Software Architect
> > [EMAIL PROTECTED]
> >
>
>


-- 
Henry Minsky
Software Architect
[EMAIL PROTECTED]

Reply via email to