flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: [FlexJS] allow "-" in ids
Date Wed, 30 Nov 2016 16:27:21 GMT

On 11/30/16, 8:03 AM, "Josh Tynjala" <joshtynjala@gmail.com> wrote:

>Remember that an MXML object with an id becomes a member property of the
>class in Actionscript. Actionscript identifiers cannot contain the "-"
>character. If this were allowed by the compiler, the only way to access
>property from Actionscript would need to be with bracket syntax:

Yep, so it is probably doable, but will be significant work in the
compiler and slow down compilation time since we'd have to scan strings to
determine what code to generate.  Is it a critical feature?


View raw message