What's up with ddoc on dlang.org?
ag0aep6g
anonymous at example.com
Mon Apr 2 22:13:23 UTC 2018
On 04/02/2018 11:36 PM, Steven Schveighoffer wrote:
> Was just perusing dlang's library documentation, and here is the
> description it has for std.experimental.allocator.make:
>
>> Dynamically allocates (using ) and then creates in the memory
>> allocated an object of type T, using (if any) for its initialization.
>> Initialization occurs in the memory allocated and is otherwise
>> semantically the same as T(). (Note that using .!(T[]) creates a
>> pointer to an (empty) array of Ts, not an array. To use an allocator
>> to allocate and initialize an array, use .makeArray!T described below.)
>
> Seems there's a few things missing here? What's happening?
Looks like a mistake that happened with this change:
https://dlang.org/changelog/2.079.0.html#fix18361
PR to fix it:
https://github.com/dlang/dlang.org/pull/2326
More information about the Digitalmars-d
mailing list