On 29 September 2012 04:12, Andrej Mitrovic <[email protected]> wrote:
> 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;
> }

This. :-)



-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';

Reply via email to