ChaiScript/ChaiScript — Issue #18: Support switch statements
Author: lefticus
Created: 2012-01-30 14:04:47+00:00
State: open

Allow the following:

switch (myvalue)
{
case 1:
// do something
break;
case 2:
// do something else
break;
};

To be consistent with C++, this would require support for labels and break statements. The labels can be emulated, but the break statements and fall through would have to actually be supported.