Hello,

It seems that if function has no parameters, it's possible to omit the
parentheses when calling it:

    string sayHello() {
      return "hello";
    }

    void main() {
      writeln(sayHello); // same as writeln(sayHello());
    }

Is this an actual defined (and documented) behaviour that I can expect
to keep working in the future, or just some random unintended side
effect which might disappear in a next version?


adam.

Reply via email to