Methods require no parantheses

Alex Rønne Petersen xtzgzorex at gmail.com
Fri Apr 20 20:27:07 PDT 2012


On 21-04-2012 05:26, Stian Pedersen wrote:
> Why is this possible? Just had a bug because of it. Would be preferable
> that you have to state @property. From what I can see the @property is
> optional.
>
> int main(string[] argv)
> {
> int a()
> {
> return 1;
> }
>
> int b = a;
>
> return 0;
> }

Just build with -property.

-- 
- Alex


More information about the Digitalmars-d mailing list