Recent Changes - Search:

Oktatás

* Programozás 2
  + feladatsor
  + C feladatsor
  + Python feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

* Adator. prog.
  + feladatsor
  + quick link

Teaching

* Prog. for Data Sci. (TODO)

teaching assets


Félévek

* 2025/26/1
* archívum


Linkek

* kalendárium
   - munkaszüneti napok '20
* tételsorok
* jegyzetek
* szakdolgozat / PhD
* ösztöndíjak
* certificates
* C lang.
* C++
* C#
* Clojure
* D lang.
* Java
* Nim
* Scala


[ edit | logout ]
[ sandbox | passwd ]

final switch statement

Taken from the book Programming in D.

The final switch statement works similarly to the regular switch statement, with the following differences:

  • It cannot have a default section.
  • Value ranges cannot be used with cases (distinct values can be).
  • If the expression is of an enum type, all of the values of the type must be covered by the cases.

Example:

    int dieValue = 1;

    final switch (dieValue) {
    case 1:
        writeln("You won");
        break;
    case 2, 3, 4, 5:
        writeln("It's a draw");
        break;
    case 6:
        writeln("I won");
        break;
    }
Cloud City

  

Blogjaim, hobbi projektjeim

* The Ubuntu Incident
* Python Adventures
* @GitHub
* heroku
* extra
* haladó Python
* YouTube listák


Debrecen | la France


[ edit ]

Edit - History - Print *** Report - Recent Changes - Search
Page last modified on 2025 August 08, 21:07