On Sat, Mar 22, 2008 at 9:29 PM, Donald Anderson <[EMAIL PROTECTED]> wrote:

> LzView(x) is probably not recognized as a cast,but as a normal function call.
>  I wonder if we
> should support the 'as' directive so we can
> recognize and elide casts.
>
>   var ip:LzView = (this.immediateparent as LzView);
>

Maybe that is the most practical solution. For LzView, I'm casting the same
expression in a lot of places, this.immediateparent, so I could declare a
new instance var  with type LzView to hold that, then I'd only have the type
cast in one place, and could
put it in a "if ($swf9)" block.  I don't really want to declare an extra
instance var just to do that, but maybe I should do that
for now just to get the merging done, and then go back and fix it up later
when we get "as" working.

Reply via email to