I've been reading a set of Actionscript 2 coding standards (*) and am
confused a bit by this one: do not use "Object" as return type (or
parameter type) when the value can be of any type. This is because "the
Macromedia compiler thinks that instances casted to interfaces are not
of type Object".

I find using "mtasc -strict" very useful, but then leaving off the
return or parameter type is not possible.

I must admit I don't quite understand what the above means - can someone
provide an example of "instances casted to interfaces"? Does mtasc have
the same problem as the Macromedia compiler?

Darren

*: http://www.simonwacker.com/blog/archives/000087.php

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to