You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Justin Mclean <ju...@classsoftware.com> on 2012/05/01 00:43:55 UTC
Re: [jira] [Updated] (FLEX-51) Please check support for ExactValue initializer
Hi
Was just looking into this and creating a few test and I notice that under the current compiler this give a slightly unexpected result:
[Bindable] protected var initial:String = "Hello";
<s:TextInput text="@Once{initial}" />
The initial string value is "@OnceHello". I would of expected it to not compile (or at least a warning) as it doesn't understand @Once.
Binding expression like this are valid, so I assume that what it is going with.
<s:TextInput text="You have {noApples} Apples" />
Anyone think this is a bug? Or that at the very least a warning should be issued?
Thanks,
Justin
RE: [jira] [Updated] (FLEX-51) Please check support for ExactValue
initializer
Posted by Gordon Smith <go...@adobe.com>.
Then it looks like the parens are necessary for the compiler to recoganize it as an @-directive, which explains why @Once{...} just did string concatenation.
- Gordon
-----Original Message-----
From: Justin Mclean [mailto:justin@classsoftware.com]
Sent: Monday, April 30, 2012 4:29 PM
To: flex-dev@incubator.apache.org
Subject: Re: [jira] [Updated] (FLEX-51) Please check support for ExactValue initializer
Hi,
> What does it do with
> <s:TextInput text="@Whatever"/>
It displays "@Whatever".
Also if you have this:
<s:TextInput text="@Embed"/>
It displays "@Embed".
But both of these:
<s:TextInput text="@Embed()"/>
<s:TextInput text="@Embed(something)"/>
Gives an error.
Thanks,
Justin
Re: [jira] [Updated] (FLEX-51) Please check support for ExactValue initializer
Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,
> What does it do with
> <s:TextInput text="@Whatever"/>
It displays "@Whatever".
Also if you have this:
<s:TextInput text="@Embed"/>
It displays "@Embed".
But both of these:
<s:TextInput text="@Embed()"/>
<s:TextInput text="@Embed(something)"/>
Gives an error.
Thanks,
Justin
RE: [jira] [Updated] (FLEX-51) Please check support for ExactValue
initializer
Posted by Gordon Smith <go...@adobe.com>.
What does it do with
<s:TextInput text="@Whatever"/>
?
- Gordon
-----Original Message-----
From: Justin Mclean [mailto:justin@classsoftware.com]
Sent: Monday, April 30, 2012 3:44 PM
To: flex-dev@incubator.apache.org
Subject: Re: [jira] [Updated] (FLEX-51) Please check support for ExactValue initializer
Hi
Was just looking into this and creating a few test and I notice that under the current compiler this give a slightly unexpected result:
[Bindable] protected var initial:String = "Hello";
<s:TextInput text="@Once{initial}" />
The initial string value is "@OnceHello". I would of expected it to not compile (or at least a warning) as it doesn't understand @Once.
Binding expression like this are valid, so I assume that what it is going with.
<s:TextInput text="You have {noApples} Apples" />
Anyone think this is a bug? Or that at the very least a warning should be issued?
Thanks,
Justin