> i think its saying that if you need to cast an object to an interface :
> ...

Thanks for the explanation.

> of course if you are really dealing with anything (which seems like a 
> slightly 
> dangerous situation) then perhaps you could just create an empty interface as 
> a tag

Typically the anything is just Number or String. Or just String or Array
of Strings (and if array then I loop through and call the function
recursively). Perhaps I should see if I can refactor those situations
into two functions (but 12 public functions instead of 6 makes a class
look more complex).

Darren

>> 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".


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

Reply via email to