[Laszlo-dev] can't set properties on methods in as3

P T Withington ptw at pobox.com
Wed Jan 2 18:26:07 PST 2008


I think that is the right thing to do.  Instead of:

this.foo['dependencies']

we use:

this.dependencies['foo']

This will require reorganizing the LFC and changing where the script  
compiler stores the dependency methods it creates.

On 2008-01-02, at 17:10 EST, Henry Minsky wrote:

> Well, the flex runtime doesn't let you set properties on methods  
> directly
>
> 26            foo['dependencies'] = ['a','b', 'c', 'd'];
>
> [Fault] exception, information=ReferenceError: Error #1056: Cannot
> create property dependencies on builtin.as$0.MethodClosure.
> Fault, ClassB$iinit() at TestMethod.as:26
>
>
> I think we need to put the dependencies lists someplace else, but we
> really want that place to be in scope within
> an instance/class. Maybe we can have the compiler put them into an
> lzinheritedhash style table, which we
> inherit like we do setters, etc?
>
>
>
>
> -- 
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com



More information about the Laszlo-dev mailing list