Properties: a.b.c = 3

Steven Schveighoffer schveiguy at yahoo.com
Wed Jul 29 10:26:21 PDT 2009


On Wed, 29 Jul 2009 13:22:14 -0400, Bill Baxter <wbaxter at gmail.com> wrote:

> Similarly, taking the address should lead to an error.
>
> auto ptr = &a.b;  // ok if b is a field
> auto ptr = &a.b; // bogus if b is a property returning a non-lvalue

Impossible with the current implementation -- &a.b is a delegate :)

-Steve



More information about the Digitalmars-d mailing list