D RAII with postblit disabled

Norm norm.rowtree at gmail.com
Tue Mar 27 02:46:12 UTC 2018


On Tuesday, 27 March 2018 at 02:43:15 UTC, Adam D. Ruppe wrote:
> On Tuesday, 27 March 2018 at 02:35:23 UTC, Norm wrote:
>> What's the best way to do this in D?
>
> I'd also add `@disable this();` and then a `static O make() { 
> return O(theAllocator.make!int(99)); }`
>
> than you construct it with that static make function.

Perfect, thanks.


More information about the Digitalmars-d-learn mailing list