static property without return type

Alvaro alvaro-dot-segura at gmail.com
Sun Mar 17 12:21: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)
>     {
>
>     }
> }
>

My guess is this: If it takes an argument (Object v) I assume it 
is a *setter*, so it does not need to return anything. Then, the 
non-written type is *auto* and is deduced to be *void*. Right?



More information about the Digitalmars-d mailing list