On Mon, 30 Apr 2012 11:31:49 +0200, John Chapman <[email protected]> wrote:

On Monday, 30 April 2012 at 07:49:48 UTC, simendsjo wrote:

I use it to "fake" object initializers from C#: http://msdn.microsoft.com/en-us/library/bb384062.aspx
A feature I love in C# and would like to see in D.

Ooh, nice - care to share?

Basically just
auto c = new C; with(c) {
  field = value;
}

Reply via email to