Immutability and other attributes, please review

Dmitry Olshansky dmitry.olsh at gmail.com
Thu Jun 14 11:05:26 PDT 2012


On 14.06.2012 22:03, Roman D. Boiko wrote:
> On Thursday, 14 June 2012 at 18:01:06 UTC, Jonathan M Davis wrote:
>>> I think make new would be more self-explanatory. Ptr doesn't imply heap.
>>> Other then this, it looks useful.
>>> (I'd love to see an optional allocator parameter... but have to wait I
>>> guess)
>>
>> Well, we use make with std.container already for essentially the same
>> thing,
>> only it's specifically for containers.
>>
>> - Jonathan M Davis
> Dmitry probably suggested makeNew(...)
>
Yup, what he said ^ :)

-- 
Dmitry Olshansky


More information about the Digitalmars-d-learn mailing list