--- On Thu, 8/13/09, Tracy Spratt <tr...@nts3rd.com> wrote:
>Ok, if you say so. What is the >result of your investigation? I just checked, and it does indeed convert null to "null". So it's effectively the same with or without the curly braces. The element contains a String 4 characters long. >It gets kind of complicated because AS does >implicit toString() sometimes which can hide what is really happening. > >Do: > >trace(xmlList == null); > >and > >trace(xmlList == “null”); > >return the same result? Surprisingly, the second one doesn't compile. It failed with the error: "Error: Comparison between a value with static type XMLList and a possibly unrelated type String." But if it did compile, I would expect it to produce the same result. And just to make sure, I was able to compile and run this: ... var s:* = "null" trace(xmlList == s); and the output was the same as when comparing xmlList to null.