Function call without parentheses?

bearophile bearophileHUGS at lycos.com
Tue May 10 12:45:15 PDT 2011


Rainer:

> The problem is that it took me hours to find this simple bug.

Please, show me a minimal test case that reproduces the problem, and I'll put it in Bugzilla as bug or enhancement request, etc.

This doesn't compile:

class Foo {
    private bool bar;
    bool bar() {
        return this.bar;
    }
}
void main() {}

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list