static property without return type

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat Mar 16 15:47:18 PDT 2013


On Saturday, 16 March 2013 at 22:34:01 UTC, Michael wrote:
> Why Dmd accepts?
>
> class E
> {
>     @property public static pro(Object v)
>     {
>
>     }
> }
>
> Dmd 2.062 Win 64

It's a (mis)feature. Whenever you have an attribute it acts as if 
'auto' is used  if there is no return type.

Personally I've never found this a useful feature.


More information about the Digitalmars-d mailing list