DIP23 draft: Fixing properties redux

Jonathan M Davis jmdavisProg at gmx.com
Mon Feb 4 00:44:23 PST 2013


On Monday, February 04, 2013 09:22:56 Jacob Carlborg wrote:
> On 2013-02-03 17:11, Andrei Alexandrescu wrote:
> > It's dangerous to get too clever about that. Anyhow, such rewrites are
> > possible:
> > 
> > ++a.p ----> { auto v = a.p; ++v; a.p = v; return v; }()
> > a.p++ ----> { auto v = a.p; ++a.p; return v; }()
> > 
> > and so on.
> 
> Is that part of the proposal or not?

It is now, though I don't think that it was intially. It's in the "Applying 
operators" section.

- Jonathan M Davis


More information about the Digitalmars-d mailing list