Case Range Statement ..

Valery free_on at mail.ru
Sat Jul 11 10:17:51 PDT 2009


I think that inclusive ranges more intuitive for beginner programmers because statements:

  case 1..10,
  array [1..10],
  foreach (int item; 1..10),
  foreach_reverse (int item; 1..10) (now foreach_reverse range is too dificult to understand it: item begins with 10 or 9, ends 1 or 2?)

will not require an explanation of their actions. Thanks.



More information about the Digitalmars-d mailing list