new A().b() currently requires extra brackets/parentheses

Philippe Sigaud philippe.sigaud at gmail.com
Mon Sep 10 11:48:53 PDT 2012


On Mon, Sep 10, 2012 at 7:38 PM, Nick Treleaven
<ntrel-public at yahoo.co.uk> wrote:

> I assumed he only needed class construction. I forgot that we already have
> std.container.make (which also works with structs):

Oh, I wasn't criticizing your code, just listing my needs :)
I didn't know about std.container.make.

> make!A(5).i.writeln();
>
> I noticed jmdavis has a pull request for what you describe:
> https://github.com/D-Programming-Language/phobos/pull/756

Good!


More information about the Digitalmars-d mailing list