getChar() vs. getChar!true()

Peter Sommerfeld noreply at rubrica.at
Wed Mar 20 13:11:45 PDT 2013


In std.json is a function getchar() with this signature:

dchar getChar(bool SkipWhitespace = false);

But it is called differently:

getChar(); // obviously SkipWhitespace = true;

getChar!true(); // probably getchar(true)

What is the reason for the different notation ?

Peter


More information about the Digitalmars-d-learn mailing list