[Laszlo-dev] can't set properties on methods in as3
Henry Minsky
henry.minsky at gmail.com
Wed Jan 2 14:10:43 PST 2008
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