convert static arrays to dynamic arrays and return, have wrong data.
bearophile via Digitalmars-d
digitalmars-d at puremagic.com
Sun Nov 9 02:04:16 PST 2014
AlanThinker:
> It seems that, D's array is strange,
> It can implicit convert static arrays to dynamic arrays no
> error and no warning.
> But when I return the converted arrays out the function.
> Outside function will get some wrong data.
>
> It may very easily cause some bug because no error when convert
> static arrays to dynamic arrays.
Yeah, what do you suggest to change in the language to avoid this
problem?
Bye,
bearophile
More information about the Digitalmars-d
mailing list