array setting : Whats going in here?
Imperatorn
johan_forsberg_86 at hotmail.com
Mon Oct 9 07:37:11 UTC 2023
On Monday, 9 October 2023 at 02:19:20 UTC, Jonathan M Davis wrote:
> On Sunday, October 8, 2023 8:08:46 AM MDT Imperatorn via
> Digitalmars-d-learn wrote:
>> [...]
>
> Except that in those examples, they _do_ match. It's perfectly
> valid to copy elements of a string to a char[]. It's just
> copying immutable(char) to char. The compiler would complain if
> it couldn't implicitly convert the element type in the array
> being assigned from to the element type in the array being
> assigned to. The problem here is simply that the lengths of the
> arrays don't match.
>
> [...]
Thanks, I think I read the code a little too fast
More information about the Digitalmars-d-learn
mailing list