Case Range Statement ..

Jarrett Billingsley jarrett.billingsley at gmail.com
Sat Jul 11 13:44:49 PDT 2009


On Sat, Jul 11, 2009 at 4:42 PM, Jarrett
Billingsley<jarrett.billingsley at gmail.com> wrote:
> On Sat, Jul 11, 2009 at 4:37 PM, Unknown W.
> Brackets<unknown at simplemachines.org> wrote:
>> I have not read this entire topic, but what about the following:
>>
>> case 5, .., 9:
>
> I don't have a problem with the current syntax, but the mathematical
> side of my brain squealed with fanboyish glee when it saw this.  This
> would be FANTASTIC.

Oh man, and it's even extensible and would mesh perfectly with the
existing syntax:

case 1, 3: // 1 or 3
case 5, .., 9: // 5, 6, 7, 8, 9
case 10, 12, .., 17, 19: 10, 12, 13, 14, 15, 16, 17, 19



More information about the Digitalmars-d mailing list