Property discussion wrap-up

Timon Gehr timon.gehr at gmx.ch
Wed Jan 30 10:06:46 PST 2013


On 01/30/2013 05:39 PM, TommiT wrote:
> ...
>
> "Empty parentheses may be omitted when calling functions with a
> user-defined name."
> ...

This is subject to 4 exceptions:

auto foo() { ... }

1. &foo           // get function pointer or delegate
2. alias x = foo; // alias to function (same for alias params)
3. typeof(foo)    // type of function
4. foo()          // function called


More information about the Digitalmars-d mailing list