Does D have too many features?

simendsjo simendsjo at gmail.com
Mon Apr 30 02:35:25 PDT 2012


On Mon, 30 Apr 2012 11:31:49 +0200, John Chapman <johnch_atms at hotmail.com>  
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;
}


More information about the Digitalmars-d mailing list