Switch Statement

From Second Life Wiki
Jump to navigation Jump to search

Basic C switch statement. This would be especially useful for cycling through constants that don't overlap with each other. (i.e. TYPE_* or ATTACH_*)

mod:Sedric Raymaker-- it would also cut down on huge nested if statements, little surprised is not available, but can work around for now

Adding it would require changes to the compiler and VM. It isn't worth the work involved, best to wait for Mono. Strife Onizuka 22:04, 7 April 2007 (PDT)