On 9/29/12, Jonathan M Davis <[email protected]> wrote: > you could simply use with to solve the problem: > > with(MyFruit) > { > switch(fruit) > { > case apple: break; > case orange: break; > case banana: break; > } > } >
It's even simpler:
switch(fruit) with (MyFruit)
{
case apple: break;
case orange: break;
case banana: break;
}
