Help on array pointers

vino akashvino79 at gmail.com
Mon Sep 18 02:49:37 UTC 2023


On Sunday, 17 September 2023 at 18:28:36 UTC, Joe wrote:
> On Friday, 15 September 2023 at 16:55:34 UTC, Vino wrote:
>>> [...]
>
>> [...]
>
>
> char[] invalid = (cast(char*)malloc(char.sizeof * len))[0..len];
>
> This is not the way to go about it. You are mixing "pointer 
> arrays" with "arrays".
>
> [...]

Thank you very much, I am still newbie for programming and 
currently concentrating on Arrays/Struct/Pointers/Memory 
management.


More information about the Digitalmars-d-learn mailing list