incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <>
Subject Re: [jira] [Updated] (FLEX-51) Please check support for ExactValue initializer
Date Tue, 24 Apr 2012 22:31:54 GMT

On 4/24/12 12:07 PM, "Justin Mclean" <> wrote:

> Hi,
>> There is certainly an order today for children in a container, but I don't
>> think it has been documented
> HBox and VBox and horizontal and vertical layouts probably wouldn't work as
> expected if this changed.
I disagree.  We could change the order of creation from as long as we add
them in the right order.

>> We'll get puzzled users where the value is assigned as null
> For the most common use case ie const + "const" expressions there's no issue.
Yeah, so can we just limit this optimization to constant expressions?

>> Optimizing for constant expressions is a good thing, but I still think it
>> can be done without a syntax change.
> You have anything you can submit or code we can look at?
I don't know the binding code that well and would recommend waiting for
Falcon to learn it, but I'm pretty sure the binding code in the compiler
knows about every token in the expression as it knows what the change events
are for each token.  It knows about literals since they don't have change
events.  It knows about the __NoChangeEvent__ event and I believe it
generates different code for it.  And I think it already knows about
constants today as well.

Alex Harui
Flex SDK Team
Adobe Systems, Inc.

View raw message