Function call without parentheses?

Rainer no at spam.org
Mon May 9 12:33:28 PDT 2011


Hi,

why is it possible to leave out parentheses when you call a function?

This is pretty error prone :(

class Dummy {
    private bool isValid;

    ...
    bool isValid() {
        return this.isValid;
    }
}

Cheers,
Rainer


More information about the Digitalmars-d-learn mailing list