That seems odd, I’ll ask internally.

 


From: [email protected] [mailto:[email protected]] On Behalf Of Jason Y. Kwong
Sent: Thursday, March 30, 2006 11:24 AM
To: [email protected]
Subject: [flexcoders] Flex 2 B2: @ operator resolving to local variables?

 

I'm seeing some strangeness with the @ operator:

   var foo: String = "hello";
   @foo = "goodbye";
   trace(foo);   //Traces out "goodbye"

Why does "@foo" resolve to "foo"?  Is this expected behaviour?  If "foo" is a property and not a local variable, I get a compiler error (as expected).



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to