Array as an argument, ambiguous behaviour.
Cooler
kulkin at hotbox.ru
Wed Jan 29 07:11:32 PST 2014
> Yes, that is how slices work in D. The following article
> explains the "non-determinism" that you mention:
>
> http://dlang.org/d-array-article.html
>
> Ali
Thank you for the article.
Quotation from the article "It is a good idea to note in the
documentation how the passed in slice might or might not be
overwritten."
May be just prohibit at language level the case of fun3()
function, to do not allow unpredictable behavior?
More information about the Digitalmars-d-learn
mailing list