Where can find fix length array memory layout document

Cym13 cpicard at openmailbox.org
Tue Jun 18 17:29:49 UTC 2019


On Tuesday, 18 June 2019 at 17:25:42 UTC, Cym13 wrote:
> On Tuesday, 18 June 2019 at 13:05:03 UTC, lili wrote:
>> On Tuesday, 18 June 2019 at 12:39:45 UTC, Dennis wrote:
>>> [...]
>> Thanks a lot, where is a core.stdcpp.array , How to user it?
>> I test  but get a error
>> ```
>>   auto aa = array!(int, 4); //error
>> ```
>
> Please don't shorten your code or errors to the point where 
> there's hardly any information left: it's hard to help you if 
> we can't know what you did and what went wrong.

Forgot to say that it's probably because you don't actually build 
an array here, try adding parentheses:

```
   auto aa = array!(int, 4)();
```


More information about the Digitalmars-d-learn mailing list