Array Ambiguity
Bastiaan Veelo
Bastiaan at Veelo.net
Thu Dec 20 23:24:36 UTC 2018
On Thursday, 20 December 2018 at 22:59:31 UTC, Your Name wrote:
> Static + Dynamic arrays exhibit some really weird behavior.
>
> https://run.dlang.io/is/3RfmAb
I haven’t checked the rules, but it seems logical to me. Since
the lengths match, the fixed length array argument is a more
specific match than the slice argument.
> https://run.dlang.io/is/EP0SPw
A slice argument can take a slice of a fixed length array.
The learn forum would probably have been the right place for this
:)
Bastiaan.
More information about the Digitalmars-d
mailing list