-Evan
On 2/15/06, Bob Ippolito <[EMAIL PROTECTED]> wrote:
On Feb 15, 2006, at 8:59 AM, Jos Yule wrote:
> Ralf Bokelberg wrote:
>> You can do it like this
>>
>> switch( true){
>> case (model instanceof DivideSentenceStep1):
>> //...
>> case (model instanceof DivideSentenceStep2):
>> //...
>> default:
>> //...
>> }
>
> That is very clever.
Why the heck would you want to abuse switch like that?
if (mode instanceof ...) {
// ...
} else if (mode instanceof ...) {
// ...
} else if (mode instanceof ...) {
// ...
} else {
// ...
}
-bob
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org
_______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
