Using ()s in @property functions

Robert Jacques sandford at jhu.edu
Tue Jun 29 09:19:49 PDT 2010


On Tue, 29 Jun 2010 12:03:38 -0400, BLS <windevguy at hotmail.de> wrote:

> On 29/06/2010 17:44, Andrei Alexandrescu wrote:
>> struct A { int x; @property ref y() { return x; } }
>
> should be :
> struct A { int x; @property ref int y() { return x; } }
>
> or am I wrong ?
> bjoern

You're forgetting type inference.


More information about the Digitalmars-d mailing list