Difference between revisions of "Switch Statement"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 2: Line 2:


mod:Sedric Raymaker-- it would also cut down on huge nested if statements, little surprised is not available, but can work around for now
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. [[User:Strife Onizuka|Strife Onizuka]] 22:04, 7 April 2007 (PDT)

Revision as of 17:41, 12 July 2007

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